Mercurial > hg > CbC > CbC_llvm
changeset 71:108a2a7b01ee
remove unnecessary codes
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Feb 2014 15:28:20 +0900 |
parents | 5c3d43beb4d9 |
children | 9943a04bf572 |
files | lib/Transforms/IPO/PassManagerBuilder.cpp tools/clang/lib/Lex/PPDirectives.cpp tools/clang/lib/Parse/ParseDecl.cpp |
diffstat | 3 files changed, 2 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/Transforms/IPO/PassManagerBuilder.cpp Fri Feb 14 02:03:27 2014 +0900 +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp Tue Feb 18 15:28:20 2014 +0900 @@ -211,7 +211,7 @@ MPM.add(createInstructionCombiningPass()); // Combine silly seq's #ifndef noCbC - MPM.add(createTailCallEliminationPass(true)); // Eliminate tail calls + MPM.add(createTailCallEliminationPass(false)); // Eliminate tail calls #else MPM.add(createTailCallEliminationPass()); // Eliminate tail calls #endif
--- a/tools/clang/lib/Lex/PPDirectives.cpp Fri Feb 14 02:03:27 2014 +0900 +++ b/tools/clang/lib/Lex/PPDirectives.cpp Tue Feb 18 15:28:20 2014 +0900 @@ -2432,10 +2432,7 @@ } FileID FID = SourceMgr.createFileID(File, Loc, FileCharacter); - ModuleMap::KnownHeader BuildingModule; - EnterSourceFile(FID, CurDir, FilenameTok.getLocation(), static_cast<bool>(BuildingModule)); - if (BuildingModule) - EnterAnnotationToken(*this, Loc, Loc, tok::annot_module_begin, BuildingModule.getModule()); + EnterSourceFile(FID, CurDir, FilenameTok.getLocation(), false); return true; } #endif
--- a/tools/clang/lib/Parse/ParseDecl.cpp Fri Feb 14 02:03:27 2014 +0900 +++ b/tools/clang/lib/Parse/ParseDecl.cpp Tue Feb 18 15:28:20 2014 +0900 @@ -3119,10 +3119,6 @@ break; #ifndef noCbC case tok::kw___code: { - if (DS.getSourceRange().isInvalid()) { - DS.SetRangeStart(Tok.getLocation()); - DS.SetRangeEnd(Tok.getLocation()); - } LangOptions* LOP; LOP = const_cast<LangOptions*>(&getLangOpts()); LOP->HasCodeSegment = 1;