diff options
author | Anders Carlsson <andersca@mac.com> | 2010-01-30 19:12:25 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-01-30 19:12:25 +0000 |
commit | 83c021c6d33aa173cf1a6e3bc61006dabb042703 (patch) | |
tree | b83f057ec8fad43e8ac2f08da9daa5bfb0ccd64a /lib/CodeGen/CGStmt.cpp | |
parent | f959fb5fb82ae2cbdf8635d734613a01818fb7bf (diff) |
Yay for more StringRefs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index bbd5462618..12cf963755 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -1066,10 +1066,9 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { // Clobbers for (unsigned i = 0, e = S.getNumClobbers(); i != e; i++) { - std::string Clobber(S.getClobber(i)->getStrData(), - S.getClobber(i)->getByteLength()); + llvm::StringRef Clobber = S.getClobber(i)->getString(); - Clobber = Target.getNormalizedGCCRegisterName(Clobber.c_str()); + Clobber = Target.getNormalizedGCCRegisterName(Clobber); if (i != 0 || NumConstraints != 0) Constraints += ','; |