diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-03 23:47:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-03 23:47:05 +0000 |
commit | 3a4c60ca3b8ab835a71a92c02d288b9582e4a643 (patch) | |
tree | 39b4361847822a60d4ceaf7199fbfa7827e4327b /include/llvm/LLVMContext.h | |
parent | b90d2a9046954706f98b8d338b465389834a3bf1 (diff) | |
download | external_llvm-3a4c60ca3b8ab835a71a92c02d288b9582e4a643.zip external_llvm-3a4c60ca3b8ab835a71a92c02d288b9582e4a643.tar.gz external_llvm-3a4c60ca3b8ab835a71a92c02d288b9582e4a643.tar.bz2 |
generalize LLVMContext::emitError to take a twine instead of a StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r-- | include/llvm/LLVMContext.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index 1c50630..47d2eaa 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -19,6 +19,7 @@ namespace llvm { class LLVMContextImpl; class StringRef; +class Twine; class Instruction; class Module; class SMDiagnostic; @@ -80,9 +81,9 @@ public: /// be prepared to drop the erroneous construct on the floor and "not crash". /// The generated code need not be correct. The error message will be /// implicitly prefixed with "error: " and should not end with a ".". - void emitError(unsigned LocCookie, StringRef ErrorStr); - void emitError(const Instruction *I, StringRef ErrorStr); - void emitError(StringRef ErrorStr); + void emitError(unsigned LocCookie, const Twine &ErrorStr); + void emitError(const Instruction *I, const Twine &ErrorStr); + void emitError(const Twine &ErrorStr); private: // DO NOT IMPLEMENT |