[llvm] r307590 - [lld/pdb] Add some basic linker module symbols.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 14:01:37 PDT 2017
Author: zturner
Date: Mon Jul 10 14:01:37 2017
New Revision: 307590
URL: http://llvm.org/viewvc/llvm-project?rev=307590&view=rev
Log:
[lld/pdb] Add some basic linker module symbols.
Differential Revision: https://reviews.llvm.org/D35152
Modified:
llvm/trunk/include/llvm/DebugInfo/CodeView/SymbolRecord.h
Modified: llvm/trunk/include/llvm/DebugInfo/CodeView/SymbolRecord.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/CodeView/SymbolRecord.h?rev=307590&r1=307589&r2=307590&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/CodeView/SymbolRecord.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/CodeView/SymbolRecord.h Mon Jul 10 14:01:37 2017
@@ -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; }
More information about the llvm-commits
mailing list