projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56aa4b0
)
Simplify. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Mon, 2 May 2016 22:52:15 +0000
(22:52 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Mon, 2 May 2016 22:52:15 +0000
(22:52 +0000)
llvm-svn: 268324
lld/ELF/DriverUtils.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/DriverUtils.cpp
b/lld/ELF/DriverUtils.cpp
index
4380a83
..
74c50f7
100644
(file)
--- a/
lld/ELF/DriverUtils.cpp
+++ b/
lld/ELF/DriverUtils.cpp
@@
-120,8
+120,7
@@
static std::string getDestPath(StringRef Path) {
// Copies file Src to {Config->Reproduce}/Src.
void elf::copyInputFile(StringRef Src) {
std::string Dest = getDestPath(Src);
- SmallString<128> Dir(Dest);
- path::remove_filename(Dir);
+ StringRef Dir = path::parent_path(Dest);
if (std::error_code EC = fs::create_directories(Dir)) {
error(EC, Dir + ": can't create directory");
return;