forked from OSchip/llvm-project
Add #line to make the Visual Studio compiler happy.
Fixes <rdar://problem/6507668> clang ObjC rewriter: put #line statement at top of rewritten file llvm-svn: 62706
This commit is contained in:
parent
1d09218b98
commit
050dd11e90
|
@ -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; ";
|
||||
|
|
Loading…
Reference in New Issue