diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-13 18:51:17 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-01-13 18:51:17 +0000 |
commit | 3f7b8b274dc44feb477cb3d9fe2569a3036f1bf3 (patch) | |
tree | bda37f64698ee8dfd62da0ffdfba498041135aca /clang/lib/Frontend/CompilerInstance.cpp | |
parent | 95ae5e16b97b7efed7019d9a4eb25514562979b5 (diff) | |
download | bcm5719-llvm-3f7b8b274dc44feb477cb3d9fe2569a3036f1bf3.tar.gz bcm5719-llvm-3f7b8b274dc44feb477cb3d9fe2569a3036f1bf3.zip |
Predefine __weak attribute when doing objective-c
rewriting for any target. (refixes radar 7530235).
llvm-svn: 93331
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 9f71ec6b235..19c740d17a8 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -158,7 +158,8 @@ void CompilerInstance::createPreprocessor() { PP.reset(createPreprocessor(getDiagnostics(), getLangOpts(), getPreprocessorOpts(), getHeaderSearchOpts(), getDependencyOutputOpts(), getTarget(), - getSourceManager(), getFileManager())); + getFrontendOpts(), getSourceManager(), + getFileManager())); } Preprocessor * @@ -168,6 +169,7 @@ CompilerInstance::createPreprocessor(Diagnostic &Diags, const HeaderSearchOptions &HSOpts, const DependencyOutputOptions &DepOpts, const TargetInfo &Target, + const FrontendOptions &FEOpts, SourceManager &SourceMgr, FileManager &FileMgr) { // Create a PTH manager if we are using some form of a token cache. @@ -189,7 +191,7 @@ CompilerInstance::createPreprocessor(Diagnostic &Diags, PP->setPTHManager(PTHMgr); } - InitializePreprocessor(*PP, PPOpts, HSOpts); + InitializePreprocessor(*PP, PPOpts, HSOpts, FEOpts); // Handle generating dependencies, if requested. if (!DepOpts.OutputFile.empty()) |