mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user