llvm.org GIT mirror llvm / d5bf07b
Don't use PathV1.h in llvm-link. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184092 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
1 changed file(s) with 4 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
2020 #include "llvm/Support/CommandLine.h"
2121 #include "llvm/Support/ManagedStatic.h"
2222 #include "llvm/Support/Path.h"
23 #include "llvm/Support/PathV1.h"
2423 #include "llvm/Support/PrettyStackTrace.h"
2524 #include "llvm/Support/Signals.h"
2625 #include "llvm/Support/SourceMgr.h"
5554 //
5655 static inline Module *LoadFile(const char *argv0, const std::string &FN,
5756 LLVMContext& Context) {
58 sys::Path Filename;
59 if (!Filename.set(FN)) {
60 errs() << "Invalid file name: '" << FN << "'\n";
61 return NULL;
62 }
57 SMDiagnostic Err;
58 if (Verbose) errs() << "Loading '" << FN << "'\n";
59 Module* Result = 0;
6360
64 SMDiagnostic Err;
65 if (Verbose) errs() << "Loading '" << Filename.c_str() << "'\n";
66 Module* Result = 0;
67
68 const std::string &FNStr = Filename.str();
69 Result = ParseIRFile(FNStr, Err, Context);
61 Result = ParseIRFile(FN, Err, Context);
7062 if (Result) return Result; // Load successful!
7163
7264 Err.print(argv0, errs());