[llvm-commits] [llvm] r78182 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Aug 5 02:31:42 PDT 2009
Author: asl
Date: Wed Aug 5 04:31:40 2009
New Revision: 78182
URL: http://llvm.org/viewvc/llvm-project?rev=78182&view=rev
Log:
Cleanup in dbg_stoppoint handling in CBE. Patch by Sandeep Patel.
Modified:
llvm/trunk/lib/Target/CBackend/CBackend.cpp
Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=78182&r1=78181&r2=78182&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Wed Aug 5 04:31:40 2009
@@ -3160,16 +3160,15 @@
case Intrinsic::dbg_stoppoint: {
// If we use writeOperand directly we get a "u" suffix which is rejected
// by gcc.
- std::stringstream SPIStr;
DbgStopPointInst &SPI = cast<DbgStopPointInst>(I);
- SPI.getDirectory()->print(SPIStr);
+ std::string dir;
+ GetConstantStringInfo(SPI.getDirectory(), dir);
+ std::string file;
+ GetConstantStringInfo(SPI.getFileName(), file);
Out << "\n#line "
<< SPI.getLine()
- << " \"";
- Out << SPIStr.str();
- SPIStr.clear();
- SPI.getFileName()->print(SPIStr);
- Out << SPIStr.str() << "\"\n";
+ << " \""
+ << dir << '/' << file << "\"\n";
return true;
}
case Intrinsic::x86_sse_cmp_ss:
More information about the llvm-commits
mailing list