forked from OSchip/llvm-project
Fix build breakage from r329201
Some compilers do not like having an enum type and a variable with the same name (AccelTableKind). I rename the variable to TheAccelTableKind. Suggestions for a better name welcome. llvm-svn: 329202
This commit is contained in:
parent
6088c23431
commit
0cc0306a75
|
@ -306,11 +306,11 @@ DwarfDebug::DwarfDebug(AsmPrinter *A, Module *M)
|
|||
// supported.
|
||||
if (AccelTables == AccelTableKind::Default) {
|
||||
if (tuneForLLDB() && A->TM.getTargetTriple().isOSBinFormatMachO())
|
||||
AccelTableKind = AccelTableKind::Apple;
|
||||
TheAccelTableKind = AccelTableKind::Apple;
|
||||
else
|
||||
AccelTableKind = AccelTableKind::None;
|
||||
TheAccelTableKind = AccelTableKind::None;
|
||||
} else
|
||||
AccelTableKind = AccelTables;
|
||||
TheAccelTableKind = AccelTables;
|
||||
|
||||
UseInlineStrings = DwarfInlinedStrings == Enable;
|
||||
HasAppleExtensionAttributes = tuneForLLDB();
|
||||
|
|
|
@ -278,7 +278,7 @@ class DwarfDebug : public DebugHandlerBase {
|
|||
|
||||
/// DWARF5 Experimental Options
|
||||
/// @{
|
||||
AccelTableKind AccelTableKind;
|
||||
AccelTableKind TheAccelTableKind;
|
||||
bool HasAppleExtensionAttributes;
|
||||
bool HasSplitDwarf;
|
||||
|
||||
|
@ -536,7 +536,7 @@ public:
|
|||
// Experimental DWARF5 features.
|
||||
|
||||
/// Returns what kind (if any) of accelerator tables to emit.
|
||||
llvm::AccelTableKind getAccelTableKind() const { return AccelTableKind; }
|
||||
AccelTableKind getAccelTableKind() const { return TheAccelTableKind; }
|
||||
|
||||
bool useAppleExtensionAttributes() const {
|
||||
return HasAppleExtensionAttributes;
|
||||
|
|
Loading…
Reference in New Issue