projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SystemZ] Add test missing from r186148
[oota-llvm.git]
/
tools
/
llvm-link
/
llvm-link.cpp
diff --git
a/tools/llvm-link/llvm-link.cpp
b/tools/llvm-link/llvm-link.cpp
index 01a61c672c3fb1f7c3cbb4cf205d1ed6559e2b56..d8d7534e5c73c98d11f2c49fb775ff29898ed691 100644
(file)
--- a/
tools/llvm-link/llvm-link.cpp
+++ b/
tools/llvm-link/llvm-link.cpp
@@
-55,18
+55,11
@@
DumpAsm("d", cl::desc("Print assembly as linked"), cl::Hidden);
//
static inline Module *LoadFile(const char *argv0, const std::string &FN,
LLVMContext& Context) {
//
static inline Module *LoadFile(const char *argv0, const std::string &FN,
LLVMContext& Context) {
- sys::Path Filename;
- if (!Filename.set(FN)) {
- errs() << "Invalid file name: '" << FN << "'\n";
- return NULL;
- }
-
SMDiagnostic Err;
SMDiagnostic Err;
- if (Verbose) errs() << "Loading '" << F
ilename.c_str()
<< "'\n";
+ if (Verbose) errs() << "Loading '" << F
N
<< "'\n";
Module* Result = 0;
Module* Result = 0;
-
- const std::string &FNStr = Filename.str();
- Result = ParseIRFile(FNStr, Err, Context);
+
+ Result = ParseIRFile(FN, Err, Context);
if (Result) return Result; // Load successful!
Err.print(argv0, errs());
if (Result) return Result; // Load successful!
Err.print(argv0, errs());