summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-04 16:47:09 +0000
committerChris Lattner <sabre@nondot.org>2009-06-04 16:47:09 +0000
commit5e4702db61362b852840b83b66921af61d874061 (patch)
tree707ae8ccde24efc9471ed3ca1a6c517d30e5ab39 /clang/lib/Frontend/InitPreprocessor.cpp
parent8631e0fd9c7175aea80a932f59023ffe136659d6 (diff)
downloadbcm5719-llvm-5e4702db61362b852840b83b66921af61d874061.tar.gz
bcm5719-llvm-5e4702db61362b852840b83b66921af61d874061.zip
DefineBuiltinMacro is always passed two args, remove the defaulted third
one. llvm-svn: 72868
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r--clang/lib/Frontend/InitPreprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index e3a45d42cf5..890eb0fef55 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -23,8 +23,8 @@ namespace clang {
// Append a #define line to Buf for Macro. Macro should be of the form XXX,
// in which case we emit "#define XXX 1" or "XXX=Y z W" in which case we emit
// "#define XXX Y z W". To get a #define with no value, use "XXX=".
-static void DefineBuiltinMacro(std::vector<char> &Buf, const char *Macro,
- const char *Command = "#define ") {
+static void DefineBuiltinMacro(std::vector<char> &Buf, const char *Macro) {
+ const char *Command = "#define ";
Buf.insert(Buf.end(), Command, Command+strlen(Command));
if (const char *Equal = strchr(Macro, '=')) {
// Turn the = into ' '.
OpenPOWER on IntegriCloud