[llvm-commits] [llvm] r109217 - /llvm/trunk/include/llvm/CompilerDriver/Error.h
Mikhail Glushenkov
foldr at codedgers.com
Thu Jul 22 21:19:39 PDT 2010
Author: foldr
Date: Thu Jul 22 23:19:39 2010
New Revision: 109217
URL: http://llvm.org/viewvc/llvm-project?rev=109217&view=rev
Log:
StringRef'icate.
Modified:
llvm/trunk/include/llvm/CompilerDriver/Error.h
Modified: llvm/trunk/include/llvm/CompilerDriver/Error.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CompilerDriver/Error.h?rev=109217&r1=109216&r2=109217&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CompilerDriver/Error.h (original)
+++ llvm/trunk/include/llvm/CompilerDriver/Error.h Thu Jul 22 23:19:39 2010
@@ -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
More information about the llvm-commits
mailing list