summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-05-16 13:16:30 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-05-16 13:16:30 +0000
commit152172009af6cdea927bd2810f79073c298e2948 (patch)
tree74b4c5842a9f83f1381bcccfb7859c0fcc8a7be1 /llvm/lib/MC/MCDwarf.cpp
parent3ab3467cefaab32c0d5c01f11444a2400e5e84c1 (diff)
downloadbcm5719-llvm-152172009af6cdea927bd2810f79073c298e2948.tar.gz
bcm5719-llvm-152172009af6cdea927bd2810f79073c298e2948.zip
Fix hardcoded slash to native path seperator which was exposed from llvm::sys::path.
http://reviews.llvm.org/D3687 llvm-svn: 208980
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index 3ccc23f7d9e..be6731abedd 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -689,7 +689,7 @@ static void EmitGenDwarfInfo(MCStreamer *MCOS,
const SmallVectorImpl<std::string> &MCDwarfDirs = context.getMCDwarfDirs();
if (MCDwarfDirs.size() > 0) {
MCOS->EmitBytes(MCDwarfDirs[0]);
- MCOS->EmitBytes("/");
+ MCOS->EmitBytes(sys::path::get_separator());
}
const SmallVectorImpl<MCDwarfFile> &MCDwarfFiles =
MCOS->getContext().getMCDwarfFiles();
OpenPOWER on IntegriCloud