aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CompilerDriver/Error.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/CompilerDriver/Error.h b/include/llvm/CompilerDriver/Error.h
index 0233929..013094e 100644
--- a/include/llvm/CompilerDriver/Error.h
+++ b/include/llvm/CompilerDriver/Error.h
@@ -14,20 +14,16 @@
#ifndef LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
#define LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"
-#include <string>
-
namespace llvmc {
- inline void PrintError(const char* Err) {
+ inline void PrintError(llvm::StringRef Err) {
extern const char* ProgramName;
llvm::errs() << ProgramName << ": " << Err << '\n';
}
- inline void PrintError(const std::string& Err) {
- PrintError(Err.c_str());
- }
}
#endif // LLVM_INCLUDE_COMPILER_DRIVER_ERROR_H