diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-15 06:31:06 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-15 06:31:06 +0000 |
commit | d9401e2e58e7432fc4d8f6da591cbd200320f4ea (patch) | |
tree | 71fbe4bc58c709b6bee2ba6796fe4ea67e3b9063 /clang/lib/CodeGen/CGStmt.cpp | |
parent | 7a19b31a23844bd7711cdc8f07c3588798112d9c (diff) | |
download | bcm5719-llvm-d9401e2e58e7432fc4d8f6da591cbd200320f4ea.tar.gz bcm5719-llvm-d9401e2e58e7432fc4d8f6da591cbd200320f4ea.zip |
Revert this to try to bring the i386 bots back.
llvm-svn: 161931
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index d78908dee87..467c77945e6 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1691,36 +1691,14 @@ void CodeGenFunction::EmitMSAsmStmt(const MSAsmStmt &S) { std::vector<llvm::Value*> Args; std::vector<llvm::Type *> ArgTypes; - std::string Constraints; - - // Clobbers - for (unsigned i = 0, e = S.getNumClobbers(); i != e; ++i) { - StringRef Clobber = S.getClobber(i); - - if (Clobber != "memory" && Clobber != "cc") - Clobber = Target.getNormalizedGCCRegisterName(Clobber); - - if (i != 0) - Constraints += ','; - - Constraints += "~{"; - Constraints += Clobber; - Constraints += '}'; - } - // Add machine specific clobbers std::string MachineClobbers = Target.getClobbers(); - if (!MachineClobbers.empty()) { - if (!Constraints.empty()) - Constraints += ','; - Constraints += MachineClobbers; - } llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, ArgTypes, false); llvm::InlineAsm *IA = - llvm::InlineAsm::get(FTy, *S.getAsmString(), Constraints, true); + llvm::InlineAsm::get(FTy, *S.getAsmString(), MachineClobbers, true); llvm::CallInst *Result = Builder.CreateCall(IA, Args); Result->addAttribute(~0, llvm::Attribute::NoUnwind); Result->addAttribute(~0, llvm::Attribute::IANSDialect); |