[llvm] r251423 - [Orc] Fix indentation.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 27 10:45:49 PDT 2015
Author: lhames
Date: Tue Oct 27 12:45:48 2015
New Revision: 251423
URL: http://llvm.org/viewvc/llvm-project?rev=251423&view=rev
Log:
[Orc] Fix indentation.
Modified:
llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h
Modified: llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h?rev=251423&r1=251422&r2=251423&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h (original)
+++ llvm/trunk/unittests/ExecutionEngine/Orc/OrcTestCommon.h Tue Oct 27 12:45:48 2015
@@ -25,41 +25,41 @@
namespace llvm {
- class ModuleBuilder {
- public:
- ModuleBuilder(LLVMContext &Context, StringRef Triple,
- StringRef Name);
-
- template <typename FuncType>
- Function* createFunctionDecl(Module *M, StringRef Name) {
- return Function::Create(
- TypeBuilder<FuncType, false>::get(M->getContext()),
- GlobalValue::ExternalLinkage, Name, M);
- }
-
- Module* getModule() { return M.get(); }
- const Module* getModule() const { return M.get(); }
- std::unique_ptr<Module> takeModule() { return std::move(M); }
-
- private:
- std::unique_ptr<Module> M;
- IRBuilder<> Builder;
- };
-
- // Dummy struct type.
- struct DummyStruct {
- int X[256];
- };
-
- // TypeBuilder specialization for DummyStruct.
- template <bool XCompile>
- class TypeBuilder<DummyStruct, XCompile> {
- public:
- static StructType *get(LLVMContext &Context) {
- return StructType::get(
- TypeBuilder<types::i<32>[256], XCompile>::get(Context), nullptr);
- }
- };
+class ModuleBuilder {
+public:
+ ModuleBuilder(LLVMContext &Context, StringRef Triple,
+ StringRef Name);
+
+ template <typename FuncType>
+ Function* createFunctionDecl(Module *M, StringRef Name) {
+ return Function::Create(
+ TypeBuilder<FuncType, false>::get(M->getContext()),
+ GlobalValue::ExternalLinkage, Name, M);
+ }
+
+ Module* getModule() { return M.get(); }
+ const Module* getModule() const { return M.get(); }
+ std::unique_ptr<Module> takeModule() { return std::move(M); }
+
+private:
+ std::unique_ptr<Module> M;
+ IRBuilder<> Builder;
+};
+
+// Dummy struct type.
+struct DummyStruct {
+ int X[256];
+};
+
+// TypeBuilder specialization for DummyStruct.
+template <bool XCompile>
+class TypeBuilder<DummyStruct, XCompile> {
+public:
+ static StructType *get(LLVMContext &Context) {
+ return StructType::get(
+ TypeBuilder<types::i<32>[256], XCompile>::get(Context), nullptr);
+ }
+};
template <typename HandleT,
typename AddModuleSetFtor,
More information about the llvm-commits
mailing list