diff options
author | Richard Braun <rbraun@sceen.net> | 2017-02-16 11:02:59 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-02-16 11:02:59 +0100 |
commit | f9cafebf119b5950e3e56c1a8135b3daa196ab63 (patch) | |
tree | b7a13b1358bb9fc68e5fa6a7b5d6e25ac574c8a5 | |
parent | 126ad11e3b1991cf99ea23328875023919f407ab (diff) |
Fix output file path generation
-rw-r--r-- | Context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Context.cpp b/Context.cpp index 7daf68d..9df23ef 100644 --- a/Context.cpp +++ b/Context.cpp @@ -83,8 +83,8 @@ Context::processBuffer(const FileID &id, const RewriteBuffer &buffer) // TODO Avoid writing if output already exists and is up to date. const FileEntry *entry = getSourceMgr().getFileEntryForID(id); - string path((_ci.getFileManager().getCanonicalName(entry->getDir()).str() - + "/" + entry->getName() + ".qtreslot")); + string path(entry->getName()); + path.append(".qtreslot"); note(string("writing ") + path); raw_fd_ostream file(StringRef(path), error, llvm::sys::fs::F_None); |