]> granicus.if.org Git - llvm/commitdiff
[llvm-exegesis] Fix r373083: Module -> Mod.
authorClement Courbet <courbet@google.com>
Fri, 27 Sep 2019 13:21:37 +0000 (13:21 +0000)
committerClement Courbet <courbet@google.com>
Fri, 27 Sep 2019 13:21:37 +0000 (13:21 +0000)
SnippetRepetitorTest.cpp:66:27: error: declaration of ‘std::unique_ptr<llvm::Module> llvm::exegesis::{anonymous}::X86SnippetRepetitorTest::Module’ [-fpermissive]
   std::unique_ptr<Module> Module;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373087 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/tools/llvm-exegesis/X86/SnippetRepetitorTest.cpp

index 3135da26878994227cb30271e786ec9477d173c0..d2ab6b434c4b1ebda84d07783bc991b482619254 100644 (file)
@@ -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;
 };