diff options
author | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-03-04 20:55:11 +0000 |
---|---|---|
committer | Paul Robinson <paul_robinson@playstation.sony.com> | 2015-03-04 20:55:11 +0000 |
commit | 78cc0821f098ba1ce26f4c1fe143c0d4f8a8250f (patch) | |
tree | 1109ef3025f5d91ef871c393c330be82cb5d85cb /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | |
parent | e8effe1edb7c1d5d798eed5a67d76b4f67983cab (diff) | |
download | bcm5719-llvm-78cc0821f098ba1ce26f4c1fe143c0d4f8a8250f.tar.gz bcm5719-llvm-78cc0821f098ba1ce26f4c1fe143c0d4f8a8250f.zip |
Support standard DWARF TLS opcode; Darwin and PS4 use it.
Differential Revision: http://reviews.llvm.org/D8018
llvm-svn: 231286
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h index 59ab9849b65..d1137297b3b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h @@ -290,6 +290,9 @@ class DwarfDebug : public AsmPrinterHandler { // text. bool UsedNonDefaultText; + // Whether to use the GNU TLS opcode (instead of the standard opcode). + bool UseGNUTLSOpcode; + // Version of dwarf we're emitting. unsigned DwarfVersion; @@ -318,6 +321,7 @@ class DwarfDebug : public AsmPrinterHandler { // True iff there are multiple CUs in this module. bool SingleCU; bool IsDarwin; + bool IsPS4; AddressPool AddrPool; @@ -540,6 +544,10 @@ public: SymSize[Sym] = Size; } + /// \brief Returns whether to use DW_OP_GNU_push_tls_address, instead of the + /// standard DW_OP_form_tls_address opcode + bool useGNUTLSOpcode() const { return UseGNUTLSOpcode; } + // Experimental DWARF5 features. /// \brief Returns whether or not to emit tables that dwarf consumers can |