[llvm-commits] [dragonegg] r172176 - /dragonegg/trunk/src/Backend.cpp
Duncan Sands
baldrick at free.fr
Thu Jan 10 21:58:20 PST 2013
Author: baldrick
Date: Thu Jan 10 23:58:20 2013
New Revision: 172176
URL: http://llvm.org/viewvc/llvm-project?rev=172176&view=rev
Log:
The getMessage method of SMDiagnostic has been changed to return a StringRef
rather than a std::string.
Modified:
dragonegg/trunk/src/Backend.cpp
Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=172176&r1=172175&r2=172176&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Thu Jan 10 23:58:20 2013
@@ -1795,7 +1795,7 @@
static void InlineAsmDiagnosticHandler(const SMDiagnostic &D, void * /*Data*/,
location_t loc) {
- const char *Message = D.getMessage().c_str();
+ const char *Message = D.getMessage().str().c_str();
switch (D.getKind()) {
case SourceMgr::DK_Error:
error_at(loc, "%s", Message);
More information about the llvm-commits
mailing list