]> granicus.if.org Git - llvm/commitdiff
[JITLink] Remove a lot of reduntant 'JITLink_' prefixes. NFC.
authorLang Hames <lhames@gmail.com>
Mon, 22 Apr 2019 03:03:09 +0000 (03:03 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 22 Apr 2019 03:03:09 +0000 (03:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358869 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
include/llvm/ExecutionEngine/JITLink/EHFrameSupport.h [moved from include/llvm/ExecutionEngine/JITLink/JITLink_EHFrameSupport.h with 85% similarity]
include/llvm/ExecutionEngine/JITLink/MachO.h [moved from include/llvm/ExecutionEngine/JITLink/JITLink_MachO.h with 77% similarity]
include/llvm/ExecutionEngine/JITLink/MachO_x86_64.h [moved from include/llvm/ExecutionEngine/JITLink/JITLink_MachO_x86_64.h with 87% similarity]
lib/ExecutionEngine/JITLink/CMakeLists.txt
lib/ExecutionEngine/JITLink/EHFrameSupport.cpp [moved from lib/ExecutionEngine/JITLink/JITLink_EHFrameSupport.cpp with 99% similarity]
lib/ExecutionEngine/JITLink/EHFrameSupportImpl.h [moved from lib/ExecutionEngine/JITLink/JITLink_EHFrameSupportImpl.h with 84% similarity]
lib/ExecutionEngine/JITLink/JITLink.cpp
lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp
lib/ExecutionEngine/JITLink/MachO.cpp [moved from lib/ExecutionEngine/JITLink/JITLink_MachO.cpp with 87% similarity]
lib/ExecutionEngine/JITLink/MachO_x86_64.cpp [moved from lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp with 99% similarity]
lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
unittests/ExecutionEngine/JITLink/CMakeLists.txt
unittests/ExecutionEngine/JITLink/MachO_x86_64_Tests.cpp [moved from unittests/ExecutionEngine/JITLink/JITLinkTest_MachO_x86_64_Tests.cpp with 98% similarity]

similarity index 85%
rename from include/llvm/ExecutionEngine/JITLink/JITLink_EHFrameSupport.h
rename to include/llvm/ExecutionEngine/JITLink/EHFrameSupport.h
index 3bcfc22a5c03f544dc483db70faf93ffc147d312..5c1c276d372e02cda9a7244d07bae0e2ab08b1f0 100644 (file)
@@ -1,4 +1,4 @@
-//===----- JITLink_EHFrameSupport.h - JITLink eh-frame utils ----*- C++ -*-===//
+//===--------- EHFrameSupport.h - JITLink eh-frame utils --------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_EXECUTIONENGINE_JITLINK_JITLINK_EHFRAMESUPPORT_H
-#define LLVM_EXECUTIONENGINE_JITLINK_JITLINK_EHFRAMESUPPORT_H
+#ifndef LLVM_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORT_H
+#define LLVM_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORT_H
 
 #include "llvm/ADT/Triple.h"
 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
@@ -39,4 +39,4 @@ AtomGraphPassFunction createEHFrameRecorderPass(const Triple &TT,
 } // end namespace jitlink
 } // end namespace llvm
 
-#endif // LLVM_EXECUTIONENGINE_JITLINK_JITLINK_EHFRAMESUPPORT_H
+#endif // LLVM_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORT_H
similarity index 77%
rename from include/llvm/ExecutionEngine/JITLink/JITLink_MachO.h
rename to include/llvm/ExecutionEngine/JITLink/MachO.h
index bc02ce426c68e96b5e62fa591e1dc9d98ff11ac0..7facb657a51ce0ed7bb8dff3f0c27a290f7865e4 100644 (file)
@@ -1,4 +1,4 @@
-//===--- JITLink_MachO.h - Generic JIT link function for MachO --*- C++ -*-===//
+//===------- MachO.h - Generic JIT link function for MachO ------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_EXECUTIONENGINE_JITLINK_JITLINK_MACHO_H
-#define LLVM_EXECUTIONENGINE_JITLINK_JITLINK_MACHO_H
+#ifndef LLVM_EXECUTIONENGINE_JITLINK_MACHO_H
+#define LLVM_EXECUTIONENGINE_JITLINK_MACHO_H
 
 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
 
@@ -27,4 +27,4 @@ void jitLink_MachO(std::unique_ptr<JITLinkContext> Ctx);
 } // end namespace jitlink
 } // end namespace llvm
 
-#endif // LLVM_EXECUTIONENGINE_JITLINK_JITLINK_MACHO_X86_64_H
+#endif // LLVM_EXECUTIONENGINE_JITLINK_MACHO_H
similarity index 87%
rename from include/llvm/ExecutionEngine/JITLink/JITLink_MachO_x86_64.h
rename to include/llvm/ExecutionEngine/JITLink/MachO_x86_64.h
index 76ee07765d048f92ed3fdae2a1900e2d537b1154..1d5b586afc32bfd1b1cb9ac861402a790363e30d 100644 (file)
@@ -1,4 +1,4 @@
-//===--- JITLink_MachO_x86_64.h - JIT link functions for MachO --*- C++ -*-===//
+//===--- MachO_x86_64.h - JIT link functions for MachO/x86-64 ---*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_EXECUTIONENGINE_JITLINK_JITLINK_MACHO_X86_64_H
-#define LLVM_EXECUTIONENGINE_JITLINK_JITLINK_MACHO_X86_64_H
+#ifndef LLVM_EXECUTIONENGINE_JITLINK_MACHO_X86_64_H
+#define LLVM_EXECUTIONENGINE_JITLINK_MACHO_X86_64_H
 
 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
 
@@ -60,4 +60,4 @@ StringRef getMachOX86RelocationKindName(Edge::Kind R);
 } // end namespace jitlink
 } // end namespace llvm
 
-#endif // LLVM_EXECUTIONENGINE_JITLINK_JITLINK_MACHO_X86_64_H
+#endif // LLVM_EXECUTIONENGINE_JITLINK_MACHO_X86_64_H
index 2a4196535cf7c7616d8449315b75b5e351010046..00fe8b07122cde3c053901ff5cd8a8a0f856f3df 100644 (file)
@@ -1,9 +1,9 @@
 add_llvm_library(LLVMJITLink
   JITLink.cpp
   JITLinkGeneric.cpp
-  JITLink_EHFrameSupport.cpp
-  JITLink_MachO.cpp
-  JITLink_MachO_x86_64.cpp
+  EHFrameSupport.cpp
+  MachO.cpp
+  MachO_x86_64.cpp
   MachOAtomGraphBuilder.cpp
 
   DEPENDS
similarity index 99%
rename from lib/ExecutionEngine/JITLink/JITLink_EHFrameSupport.cpp
rename to lib/ExecutionEngine/JITLink/EHFrameSupport.cpp
index 38c537b5c78437978b113b4649bae2f8f983e8e0..6517b3b0d0ceded61724f6612f1a8ca666766d97 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "JITLink_EHFrameSupportImpl.h"
+#include "EHFrameSupportImpl.h"
 
 #include "llvm/BinaryFormat/Dwarf.h"
 #include "llvm/Support/DynamicLibrary.h"
similarity index 84%
rename from lib/ExecutionEngine/JITLink/JITLink_EHFrameSupportImpl.h
rename to lib/ExecutionEngine/JITLink/EHFrameSupportImpl.h
index fe4b182401a68182cd1501fbcefcd2725ec286ff..78be89cfca9b0e2427015e2f60a1dba00df7642a 100644 (file)
@@ -1,4 +1,4 @@
-//===----- JITLink_EHFrameSupport.h - JITLink eh-frame utils ----*- C++ -*-===//
+//===------- EHFrameSupportImpl.h - JITLink eh-frame utils ------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_LIB_EXECUTIONENGINE_JITLINK_JITLINK_EHFRAMESUPPORTIMPL_H
-#define LLVM_LIB_EXECUTIONENGINE_JITLINK_JITLINK_EHFRAMESUPPORTIMPL_H
+#ifndef LLVM_LIB_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORTIMPL_H
+#define LLVM_LIB_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORTIMPL_H
 
-#include "llvm/ExecutionEngine/JITLink/JITLink_EHFrameSupport.h"
+#include "llvm/ExecutionEngine/JITLink/EHFrameSupport.h"
 
 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
 #include "llvm/Support/BinaryStreamReader.h"
@@ -62,4 +62,4 @@ Error addEHFrame(AtomGraph &G, Section &EHFrameSection,
 } // end namespace jitlink
 } // end namespace llvm
 
-#endif // LLVM_LIB_EXECUTIONENGINE_JITLINK_JITLINK_EHFRAMESUPPORTIMPL_H
+#endif // LLVM_LIB_EXECUTIONENGINE_JITLINK_EHFRAMESUPPORTIMPL_H
index 38c786e2ea2812f223d06b14b53f60adeb458bfa..3169011f08259dfcb4f3f79f3afe539ab30a07d5 100644 (file)
@@ -10,7 +10,7 @@
 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
 
 #include "llvm/BinaryFormat/Magic.h"
-#include "llvm/ExecutionEngine/JITLink/JITLink_MachO.h"
+#include "llvm/ExecutionEngine/JITLink/MachO.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
index f6a31dc05159be4927496565776c0f7299d9cc87..04a4be1658ce6abbf796c2e752f809eceffa74f8 100644 (file)
@@ -11,7 +11,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "JITLinkGeneric.h"
-#include "JITLink_EHFrameSupportImpl.h"
+#include "EHFrameSupportImpl.h"
 
 #include "llvm/Support/BinaryStreamReader.h"
 #include "llvm/Support/MemoryBuffer.h"
similarity index 87%
rename from lib/ExecutionEngine/JITLink/JITLink_MachO.cpp
rename to lib/ExecutionEngine/JITLink/MachO.cpp
index 7f4364d0b34222b2d7ab40746782dca7cc757222..8755eeccebb9a35f11e4f0d09b4b9567fa974f8b 100644 (file)
@@ -1,4 +1,4 @@
-//===------------ JITLink.cpp - Run-time JIT linker for MachO -------------===//
+//===-------------- MachO.cpp - JIT linker function for MachO -------------===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -6,11 +6,15 @@
 // License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
+//
+// MachO jit-link function.
+//
+//===----------------------------------------------------------------------===//
 
-#include "llvm/ExecutionEngine/JITLink/JITLink_MachO.h"
+#include "llvm/ExecutionEngine/JITLink/MachO.h"
 
 #include "llvm/BinaryFormat/MachO.h"
-#include "llvm/ExecutionEngine/JITLink/JITLink_MachO_x86_64.h"
+#include "llvm/ExecutionEngine/JITLink/MachO_x86_64.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/MemoryBuffer.h"
similarity index 99%
rename from lib/ExecutionEngine/JITLink/JITLink_MachO_x86_64.cpp
rename to lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
index 9db129d13eb5cd72225ab71cea6dda5585bf1f4f..3f12bf4b89f5dd32e5cdde4696ec16a43c32536f 100644 (file)
@@ -1,4 +1,4 @@
-//===------- JITLink_MachO_x86_64.cpp - JIT linker functionality ----------===//
+//===---- MachO_x86_64.cpp -JIT linker implementation for MachO/x86-64 ----===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -6,11 +6,11 @@
 //
 //===----------------------------------------------------------------------===//
 //
-// MachO jit-link implementation.
+// MachO/x86-64 jit-link implementation.
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/ExecutionEngine/JITLink/JITLink_MachO_x86_64.h"
+#include "llvm/ExecutionEngine/JITLink/MachO_x86_64.h"
 
 #include "BasicGOTAndStubsBuilder.h"
 #include "MachOAtomGraphBuilder.h"
index 7b85f654bde79685d7c6d705e6368f0a847b0f77..154d7040b76536e29d37d7988e168f139e98e36b 100644 (file)
@@ -9,7 +9,7 @@
 #include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h"
 
 #include "llvm/ADT/Optional.h"
-#include "llvm/ExecutionEngine/JITLink/JITLink_EHFrameSupport.h"
+#include "llvm/ExecutionEngine/JITLink/EHFrameSupport.h"
 
 #include <vector>
 
index cad624d301778eb7a979036ec58f91ddc52b37c1..9f9ffbbde1ac7b9c5033e7dcdd7fc3edfb0f6c72 100644 (file)
@@ -12,7 +12,7 @@ set(LLVM_LINK_COMPONENTS
 
 add_llvm_unittest(JITLinkTests
     JITLinkTestCommon.cpp
-    JITLinkTest_MachO_x86_64_Tests.cpp
+    MachO_x86_64_Tests.cpp
   )
 
 target_link_libraries(JITLinkTests PRIVATE LLVMTestingSupport)
similarity index 98%
rename from unittests/ExecutionEngine/JITLink/JITLinkTest_MachO_x86_64_Tests.cpp
rename to unittests/ExecutionEngine/JITLink/MachO_x86_64_Tests.cpp
index 36e62a4f0ca78835ee5bdb9a17a43f629fd7e920..98c5d44d46662489efea799ea1755bad2d9c77f9 100644 (file)
@@ -1,4 +1,4 @@
-//===---- JITLinkTest_MachO_x86_64.cpp - Tests for JITLink MachO/x86-64 ---===//
+//===--------- MachO_x86_64.cpp - Tests for JITLink MachO/x86-64 ----------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -9,7 +9,7 @@
 #include "JITLinkTestCommon.h"
 
 #include "llvm/ADT/DenseSet.h"
-#include "llvm/ExecutionEngine/JITLink/JITLink_MachO_x86_64.h"
+#include "llvm/ExecutionEngine/JITLink/MachO_x86_64.h"
 #include "llvm/Testing/Support/Error.h"
 
 #include "gtest/gtest.h"