diff options
| author | Clement Courbet <courbet@google.com> | 2019-09-27 13:21:37 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2019-09-27 13:21:37 +0000 |
| commit | 24078fe157d64d5ebfce2d4bb3f8b72d2bb63376 (patch) | |
| tree | 55f2f0afe1588968675bcac107c17f95a9bf6da5 | |
| parent | 171c12bb1db24124d57129cc2e227f9221f59e4f (diff) | |
| download | bcm5719-llvm-24078fe157d64d5ebfce2d4bb3f8b72d2bb63376.tar.gz bcm5719-llvm-24078fe157d64d5ebfce2d4bb3f8b72d2bb63376.zip | |
[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
| -rw-r--r-- | llvm/unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp b/llvm/unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp index 3135da26878..d2ab6b434c4 100644 --- a/llvm/unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp +++ b/llvm/unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp @@ -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; }; |

