DebugInfo: Use the comp_dir of the referencing type units when building debug_line.dwo
[oota-llvm.git] / include / llvm / MC / MCDwarf.h
index 508c8305bc08a42233c120ee99cb73ef3bd892d5..731ffb14fb3a0543e2147f1c479d8f07210ef1a0 100644 (file)
@@ -195,6 +195,9 @@ struct MCDwarfLineTableHeader {
 class MCDwarfDwoLineTable {
   MCDwarfLineTableHeader Header;
 public:
+  void setCompilationDir(StringRef CompilationDir) {
+    Header.CompilationDir = CompilationDir;
+  }
   unsigned getFile(StringRef Directory, StringRef FileName) {
     return Header.getFile(Directory, FileName);
   }