diff options
Diffstat (limited to 'clang')
-rw-r--r-- | clang/Driver/RewriteObjC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Driver/RewriteObjC.cpp b/clang/Driver/RewriteObjC.cpp index 3c797c5b6d6..4524920f5a5 100644 --- a/clang/Driver/RewriteObjC.cpp +++ b/clang/Driver/RewriteObjC.cpp @@ -456,10 +456,11 @@ void RewriteObjC::Initialize(ASTContext &context) { Rewrite.setSourceMgr(Context->getSourceManager()); + Preamble = "#line 2\n"; // declaring objc_selector outside the parameter list removes a silly // scope related warning... if (IsHeader) - Preamble = "#pragma once\n"; + Preamble += "#pragma once\n"; Preamble += "struct objc_selector; struct objc_class;\n"; Preamble += "struct __rw_objc_super { struct objc_object *object; "; Preamble += "struct objc_object *superClass; "; |