projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support standard DWARF TLS opcode; Darwin and PS4 use it.
[oota-llvm.git]
/
lib
/
CodeGen
/
AsmPrinter
/
DwarfDebug.h
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.h
b/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 59ab9849b65b712b4686b60e1780d468dbe34437..d1137297b3bcbaea2985210808c6547671f9ee3e 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/
lib/CodeGen/AsmPrinter/DwarfDebug.h
@@
-290,6
+290,9
@@
class DwarfDebug : public AsmPrinterHandler {
// text.
bool UsedNonDefaultText;
// 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;
// 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;
// True iff there are multiple CUs in this module.
bool SingleCU;
bool IsDarwin;
+ bool IsPS4;
AddressPool AddrPool;
AddressPool AddrPool;
@@
-540,6
+544,10
@@
public:
SymSize[Sym] = Size;
}
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
// Experimental DWARF5 features.
/// \brief Returns whether or not to emit tables that dwarf consumers can