]> granicus.if.org Git - llvm/commitdiff
[lld/pdb] Add some basic linker module symbols.
authorZachary Turner <zturner@google.com>
Mon, 10 Jul 2017 21:01:37 +0000 (21:01 +0000)
committerZachary Turner <zturner@google.com>
Mon, 10 Jul 2017 21:01:37 +0000 (21:01 +0000)
Differential Revision: https://reviews.llvm.org/D35152

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307590 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/CodeView/SymbolRecord.h

index 7941af8be8af2ac4e5f78af7b816e80a47bddd8c..cdfc1745cea5d1a426e03377b12a12286214c0f5 100644 (file)
@@ -735,6 +735,10 @@ public:
   uint16_t VersionBackendQFE;
   StringRef Version;
 
+  void setLanguage(SourceLanguage Lang) {
+    Flags = CompileSym3Flags((uint32_t(Flags) & 0xFFFFFF00) | uint32_t(Lang));
+  }
+
   uint8_t getLanguage() const { return static_cast<uint32_t>(Flags) & 0xFF; }
   uint32_t getFlags() const { return static_cast<uint32_t>(Flags) & ~0xFF; }