aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-07-10 21:01:37 +0000
committerZachary Turner <zturner@google.com>2017-07-10 21:01:37 +0000
commit8a3ff6431f415939238052f7a262876dd775617d (patch)
tree7204ca2f9f3ff7b998c31168d734828998d691b0
parentc364d94de8bf7b0168440e7d1c9adce81f6a1c33 (diff)
[lld/pdb] Add some basic linker module symbols.linaro-local/diana.picus/Check307590
Differential Revision: https://reviews.llvm.org/D35152 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307590 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/DebugInfo/CodeView/SymbolRecord.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo/CodeView/SymbolRecord.h b/include/llvm/DebugInfo/CodeView/SymbolRecord.h
index 7941af8be8a..cdfc1745cea 100644
--- a/include/llvm/DebugInfo/CodeView/SymbolRecord.h
+++ b/include/llvm/DebugInfo/CodeView/SymbolRecord.h
@@ -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; }