[llvm-commits] [dragonegg] r144997 - in /dragonegg/trunk/src: Convert.cpp Debug.cpp
Duncan Sands
baldrick at free.fr
Sat Nov 19 06:06:53 PST 2011
Author: baldrick
Date: Sat Nov 19 08:06:53 2011
New Revision: 144997
URL: http://llvm.org/viewvc/llvm-project?rev=144997&view=rev
Log:
No need to use c_str here anymore.
Modified:
dragonegg/trunk/src/Convert.cpp
dragonegg/trunk/src/Debug.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=144997&r1=144996&r2=144997&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Sat Nov 19 08:06:53 2011
@@ -386,15 +386,14 @@
} else if (ArgVal->getType()->isDoubleTy()) {
// If this is a K&R float parameter, it got promoted to double. Insert
// the truncation to float now.
- ArgVal = Builder.CreateFPTrunc(ArgVal, LLVMTy,
- NameStack.back().c_str());
+ ArgVal = Builder.CreateFPTrunc(ArgVal, LLVMTy, NameStack.back());
} else {
// If this is just a mismatch between integer types, this is due
// to K&R prototypes, where the forward proto defines the arg as int
// and the actual impls is a short or char.
assert(ArgVal->getType()->isIntegerTy(32) && LLVMTy->isIntegerTy() &&
"Lowerings don't match?");
- ArgVal = Builder.CreateTrunc(ArgVal, LLVMTy,NameStack.back().c_str());
+ ArgVal = Builder.CreateTrunc(ArgVal, LLVMTy,NameStack.back());
}
}
assert(!LocStack.empty());
Modified: dragonegg/trunk/src/Debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Debug.cpp?rev=144997&r1=144996&r2=144997&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Sat Nov 19 08:06:53 2011
@@ -1133,8 +1133,7 @@
unsigned ObjcRunTimeVer = 0;
// if (flag_objc_abi != 0 && flag_objc_abi != -1)
// ObjcRunTimeVer = flag_objc_abi;
- return DebugFactory.CreateCompileUnit(LangTag, FileName.c_str(),
- Directory.c_str(),
+ return DebugFactory.CreateCompileUnit(LangTag, FileName, Directory,
version_string, isMain,
optimize, Flags,
ObjcRunTimeVer);
More information about the llvm-commits
mailing list