mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[llvm-exegesis] Fix r373083: Module -> Mod.
SnippetRepetitorTest.cpp:66:27: error: declaration of ‘std::unique_ptr<llvm::Module> llvm::exegesis::{anonymous}::X86SnippetRepetitorTest::Module’ [-fpermissive] std::unique_ptr<Module> Module; llvm-svn: 373087
This commit is contained in:
parent
953858a81d
commit
8a234db13c
@ -43,11 +43,11 @@ protected:
|
||||
void SetUp() {
|
||||
TM = State.createTargetMachine();
|
||||
Context = std::make_unique<LLVMContext>();
|
||||
Module =
|
||||
std::make_unique<llvm::Module>("X86SnippetRepetitorTest", *Context);
|
||||
Module->setDataLayout(TM->createDataLayout());
|
||||
Mod =
|
||||
std::make_unique<Module>("X86SnippetRepetitorTest", *Context);
|
||||
Mod->setDataLayout(TM->createDataLayout());
|
||||
MMI = std::make_unique<MachineModuleInfo>(TM.get());
|
||||
MF = &createVoidVoidPtrMachineFunction("TestFn", Module.get(), MMI.get());
|
||||
MF = &createVoidVoidPtrMachineFunction("TestFn", Mod.get(), MMI.get());
|
||||
}
|
||||
|
||||
void TestCommon(InstructionBenchmark::RepetitionModeE RepetitionMode) {
|
||||
@ -61,9 +61,9 @@ protected:
|
||||
static constexpr const unsigned kMinInstructions = 3;
|
||||
|
||||
const LLVMState State;
|
||||
std::unique_ptr<llvm::LLVMTargetMachine> TM;
|
||||
std::unique_ptr<LLVMTargetMachine> TM;
|
||||
std::unique_ptr<LLVMContext> Context;
|
||||
std::unique_ptr<Module> Module;
|
||||
std::unique_ptr<Module> Mod;
|
||||
std::unique_ptr<MachineModuleInfo> MMI;
|
||||
MachineFunction *MF = nullptr;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user