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:
Pavel Labath 2018-04-04 14:54:08 +00:00
parent 6088c23431
commit 0cc0306a75
2 changed files with 5 additions and 5 deletions

View File

@ -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();

View File

@ -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;