]> granicus.if.org Git - clang/commitdiff
Fix buildbots - update clang-interpreter to use Legacy ORC classes introduced in...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 16 Oct 2018 09:21:58 +0000 (09:21 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 16 Oct 2018 09:21:58 +0000 (09:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344598 91177308-0d34-0410-b5e6-96231b3b80d8

examples/clang-interpreter/main.cpp

index 5a8dcbddfa8f471e455b614d4f549291a921dedf..1c83b1d3e75fe47f0b5ee9dc1fde1dfb1084cf27 100644 (file)
@@ -54,8 +54,8 @@ private:
   std::shared_ptr<SymbolResolver> Resolver;
   std::unique_ptr<TargetMachine> TM;
   const DataLayout DL;
-  RTDyldObjectLinkingLayer ObjectLayer;
-  IRCompileLayer<decltype(ObjectLayer), SimpleCompiler> CompileLayer;
+  LegacyRTDyldObjectLinkingLayer ObjectLayer;
+  LegacyIRCompileLayer<decltype(ObjectLayer), SimpleCompiler> CompileLayer;
 
 public:
   SimpleJIT()
@@ -75,7 +75,7 @@ public:
         TM(EngineBuilder().selectTarget()), DL(TM->createDataLayout()),
         ObjectLayer(ES,
                     [this](VModuleKey) {
-                      return RTDyldObjectLinkingLayer::Resources{
+                      return LegacyRTDyldObjectLinkingLayer::Resources{
                           std::make_shared<SectionMemoryManager>(), Resolver};
                     }),
         CompileLayer(ObjectLayer, SimpleCompiler(*TM)) {