Fixes <rdar://problem/
6507668> clang ObjC rewriter: put #line statement at top of rewritten file
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62706
91177308-0d34-0410-b5e6-
96231b3b80d8
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; ";