diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-03-06 20:06:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-03-06 20:06:33 +0000 |
commit | f7639e1b4a6c8cbf69c0005c6173ac863735b572 (patch) | |
tree | ec10ddb85eb9803b67b1053bcac26e0050810ff3 /clang/unittests | |
parent | d151dde0e6673a15e9bf0b5f328df461dfd8cae9 (diff) | |
download | bcm5719-llvm-f7639e1b4a6c8cbf69c0005c6173ac863735b572.tar.gz bcm5719-llvm-f7639e1b4a6c8cbf69c0005c6173ac863735b572.zip |
Add new code migrator support for migrating existing Objective-C code to use
the new Objective-C NSArray/NSDictionary/NSNumber literal syntax.
This introduces a new library, libEdit, which provides a new way to support
migration of code that improves on the original ARC migrator. We now believe
that most of its functionality can be refactored into the existing libraries,
and thus this new library may shortly disappear.
llvm-svn: 152141
Diffstat (limited to 'clang/unittests')
-rw-r--r-- | clang/unittests/Frontend/Makefile | 2 | ||||
-rw-r--r-- | clang/unittests/Lex/LexerTest.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Frontend/Makefile b/clang/unittests/Frontend/Makefile index 7ec2b894a04..7c282d6b47f 100644 --- a/clang/unittests/Frontend/Makefile +++ b/clang/unittests/Frontend/Makefile @@ -13,7 +13,7 @@ LINK_COMPONENTS := support mc USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \ clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \ - clangIndex.a clangARCMigrate.a clangRewrite.a \ + clangIndex.a clangARCMigrate.a clangRewrite.a clangEdit.a \ clangAnalysis.a clangAST.a clangLex.a clangBasic.a include $(CLANG_LEVEL)/unittests/Makefile diff --git a/clang/unittests/Lex/LexerTest.cpp b/clang/unittests/Lex/LexerTest.cpp index 584ca10365d..56581fcc638 100644 --- a/clang/unittests/Lex/LexerTest.cpp +++ b/clang/unittests/Lex/LexerTest.cpp @@ -66,10 +66,10 @@ TEST_F(LexerTest, LexAPI) { "N(INN(val)) N(NOF1) N(NOF2) N(val)"; MemoryBuffer *buf = MemoryBuffer::getMemBuffer(source); - SourceMgr.createMainFileIDForMemBuffer(buf); + FileID mainFileID = SourceMgr.createMainFileIDForMemBuffer(buf); VoidModuleLoader ModLoader; - HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, &*Target); + HeaderSearch HeaderInfo(FileMgr, Diags, LangOpts, Target.getPtr()); Preprocessor PP(Diags, LangOpts, Target.getPtr(), SourceMgr, HeaderInfo, ModLoader, |