DiagnosticInfoWithDebugLocBase: Appease Twine for now.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Feb 2016 00:09:22 +0000 (00:09 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 3 Feb 2016 00:09:22 +0000 (00:09 +0000)
FIXME: We should get rid of Twine in the record.
llvm-svn: 259612

llvm/include/llvm/IR/DiagnosticInfo.h

index d5e1d9b..256e15e 100644 (file)
@@ -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