diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-04 16:47:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-04 16:47:09 +0000 |
commit | 810dc54e1c091f7ee0167ef6e271e2ea308882e1 (patch) | |
tree | ca4cc75809dab5907972319ee0418fa0e6a8ee2c /lib/Frontend/InitPreprocessor.cpp | |
parent | a46c71abb1dc2f9758ad1abe3378534fe138e802 (diff) |
DefineBuiltinMacro is always passed two args, remove the defaulted third
one.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | lib/Frontend/InitPreprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index e3a45d42cf..890eb0fef5 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/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 ' '. |