[llvm] r259612 - DiagnosticInfoWithDebugLocBase: Appease Twine for now.
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 16:09:22 PST 2016
Author: chapuni
Date: Tue Feb 2 18:09:22 2016
New Revision: 259612
URL: http://llvm.org/viewvc/llvm-project?rev=259612&view=rev
Log:
DiagnosticInfoWithDebugLocBase: Appease Twine for now.
FIXME: We should get rid of Twine in the record.
Modified:
llvm/trunk/include/llvm/IR/DiagnosticInfo.h
Modified: llvm/trunk/include/llvm/IR/DiagnosticInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=259612&r1=259611&r2=259612&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DiagnosticInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DiagnosticInfo.h Tue Feb 2 18:09:22 2016
@@ -16,6 +16,7 @@
#define LLVM_IR_DIAGNOSTICINFO_H
#include "llvm/ADT/ArrayRef.h"
+#include "llvm/ADT/Twine.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Casting.h"
@@ -28,7 +29,6 @@ class DiagnosticPrinter;
class Function;
class Instruction;
class LLVMContextImpl;
-class Twine;
class Value;
class DebugLoc;
class SMDiagnostic;
@@ -591,7 +591,7 @@ public:
class DiagnosticInfoUnsupported
: public DiagnosticInfoWithDebugLocBase {
private:
- const Twine &Msg;
+ Twine Msg;
public:
/// \p Fn is the function where the diagnostic is being emitted. \p DLoc is
More information about the llvm-commits
mailing list