summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-20 15:52:06 +0000
committerChris Lattner <sabre@nondot.org>2009-03-20 15:52:06 +0000
commit4ba73aa0c263518d8f1a12f7b7519823d57e6bb4 (patch)
tree16a3301bf2a2b4d5acef9b34d609724df19c7a65 /clang/lib/Lex/Preprocessor.cpp
parent91d63d1248370198919041239d1bf439c10b5e10 (diff)
downloadbcm5719-llvm-4ba73aa0c263518d8f1a12f7b7519823d57e6bb4.tar.gz
bcm5719-llvm-4ba73aa0c263518d8f1a12f7b7519823d57e6bb4.zip
pass LangOptions into TargetInfo::getTargetDefines, so that targets
can have language-specific defines. llvm-svn: 67375
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index 3afa4ee6b23..b06050f984b 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -641,7 +641,7 @@ static void InitializePredefinedMacros(Preprocessor &PP,
DefineBuiltinMacro(Buf, MacroBuf);
// Get other target #defines.
- TI.getTargetDefines(Buf);
+ TI.getTargetDefines(PP.getLangOptions(), Buf);
// FIXME: Should emit a #line directive here.
}
OpenPOWER on IntegriCloud