]> granicus.if.org Git - clang/commitdiff
No need to call the InitializeAll* functions.
authorChad Rosier <mcrosier@apple.com>
Tue, 2 Oct 2012 16:41:12 +0000 (16:41 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 2 Oct 2012 16:41:12 +0000 (16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165025 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAsm.cpp

index af59e34c853a2d72ffb8d0f438fcfece4055ce9b..81ae7e70e4624642e59e60f039ed970c6a0e3f23 100644 (file)
@@ -522,11 +522,6 @@ StmtResult Sema::ActOnMSAsmStmt(SourceLocation AsmLoc, SourceLocation LBraceLoc,
   // AsmParser doesn't fully support these asm statements.
   if (bailOnMSAsm(Pieces)) { DEF_SIMPLE_MSASM(EmptyAsmStr); return Owned(NS); }
 
-  // Initialize targets and assembly printers/parsers.
-  llvm::InitializeAllTargetInfos();
-  llvm::InitializeAllTargetMCs();
-  llvm::InitializeAllAsmParsers();
-
   // Get the target specific parser.
   std::string Error;
   const std::string &TT = Context.getTargetInfo().getTriple().getTriple();