#include "TestAsmPrinter.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/AsmPrinterHandler.h"
#include "llvm/CodeGen/DebugHandlerBase.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Testing/Support/Error.h"
usingnamespacellvm;
_;
DoAll;
InSequence;
SaveArg;
namespace {
class AsmPrinterFixtureBase : public testing::Test { … };
class AsmPrinterEmitDwarfSymbolReferenceTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterEmitDwarfSymbolReferenceTest, COFF) { … }
TEST_F(AsmPrinterEmitDwarfSymbolReferenceTest, COFFForceOffset) { … }
TEST_F(AsmPrinterEmitDwarfSymbolReferenceTest, ELFDWARF32) { … }
TEST_F(AsmPrinterEmitDwarfSymbolReferenceTest, ELFDWARF32ForceOffset) { … }
TEST_F(AsmPrinterEmitDwarfSymbolReferenceTest, ELFDWARF64) { … }
TEST_F(AsmPrinterEmitDwarfSymbolReferenceTest, ELFDWARF64ForceOffset) { … }
class AsmPrinterEmitDwarfStringOffsetTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterEmitDwarfStringOffsetTest, DWARF32) { … }
TEST_F(AsmPrinterEmitDwarfStringOffsetTest,
DWARF32NoRelocationsAcrossSections) { … }
TEST_F(AsmPrinterEmitDwarfStringOffsetTest, DWARF64) { … }
TEST_F(AsmPrinterEmitDwarfStringOffsetTest,
DWARF64NoRelocationsAcrossSections) { … }
class AsmPrinterEmitDwarfOffsetTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterEmitDwarfOffsetTest, DWARF32) { … }
TEST_F(AsmPrinterEmitDwarfOffsetTest, DWARF64) { … }
class AsmPrinterEmitDwarfLengthOrOffsetTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterEmitDwarfLengthOrOffsetTest, DWARF32) { … }
TEST_F(AsmPrinterEmitDwarfLengthOrOffsetTest, DWARF64) { … }
class AsmPrinterGetUnitLengthFieldByteSizeTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterGetUnitLengthFieldByteSizeTest, DWARF32) { … }
TEST_F(AsmPrinterGetUnitLengthFieldByteSizeTest, DWARF64) { … }
class AsmPrinterEmitDwarfUnitLengthAsIntTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterEmitDwarfUnitLengthAsIntTest, DWARF32) { … }
TEST_F(AsmPrinterEmitDwarfUnitLengthAsIntTest, DWARF64) { … }
class AsmPrinterEmitDwarfUnitLengthAsHiLoDiffTest
: public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterEmitDwarfUnitLengthAsHiLoDiffTest, DWARF32) { … }
TEST_F(AsmPrinterEmitDwarfUnitLengthAsHiLoDiffTest, DWARF64) { … }
class AsmPrinterHandlerTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterHandlerTest, Basic) { … }
class AsmPrinterDebugHandlerTest : public AsmPrinterFixtureBase { … };
TEST_F(AsmPrinterDebugHandlerTest, Basic) { … }
}