aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCNullStreamer.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-17 23:05:28 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-17 23:05:28 +0000
commit40f8f2ff2452c32529a10ba504ba7fbecf8731cd (patch)
tree0392a1c9839e20891d21a660b8e23ceb7d2075c8 /llvm/lib/MC/MCNullStreamer.cpp
parentb522550ce579b2709b4f10f20efc01f202b23975 (diff)
downloadllvm-40f8f2ff2452c32529a10ba504ba7fbecf8731cd.zip
llvm-40f8f2ff2452c32529a10ba504ba7fbecf8731cd.tar.gz
llvm-40f8f2ff2452c32529a10ba504ba7fbecf8731cd.tar.bz2
Add support for a new extension to the .file directive:
.file filenumber "directory" "filename" This removes one join+split of the directory+filename in MC internals. Because bitcode files have independent fields for directory and filenames in debug info, this patch may change the .o files written by existing .bc files. llvm-svn: 142300
Diffstat (limited to 'llvm/lib/MC/MCNullStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCNullStreamer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCNullStreamer.cpp b/llvm/lib/MC/MCNullStreamer.cpp
index a6c0adb..d178b50 100644
--- a/llvm/lib/MC/MCNullStreamer.cpp
+++ b/llvm/lib/MC/MCNullStreamer.cpp
@@ -83,7 +83,8 @@ namespace {
unsigned char Value = 0) {}
virtual void EmitFileDirective(StringRef Filename) {}
- virtual bool EmitDwarfFileDirective(unsigned FileNo,StringRef Filename) {
+ virtual bool EmitDwarfFileDirective(unsigned FileNo, StringRef Directory,
+ StringRef Filename) {
return false;
}
virtual void EmitDwarfLocDirective(unsigned FileNo, unsigned Line,