From 2d323d4ed212c93fba316c1d633ed627a6343398 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 27 Oct 2015 17:45:48 +0000 Subject: [PATCH] [Orc] Fix indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251423 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ExecutionEngine/Orc/OrcTestCommon.h | 70 +++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/unittests/ExecutionEngine/Orc/OrcTestCommon.h b/unittests/ExecutionEngine/Orc/OrcTestCommon.h index 99bae55815d..4be2e196707 100644 --- a/unittests/ExecutionEngine/Orc/OrcTestCommon.h +++ b/unittests/ExecutionEngine/Orc/OrcTestCommon.h @@ -25,41 +25,41 @@ namespace llvm { - class ModuleBuilder { - public: - ModuleBuilder(LLVMContext &Context, StringRef Triple, - StringRef Name); - - template - Function* createFunctionDecl(Module *M, StringRef Name) { - return Function::Create( - TypeBuilder::get(M->getContext()), - GlobalValue::ExternalLinkage, Name, M); - } - - Module* getModule() { return M.get(); } - const Module* getModule() const { return M.get(); } - std::unique_ptr takeModule() { return std::move(M); } - - private: - std::unique_ptr M; - IRBuilder<> Builder; - }; - - // Dummy struct type. - struct DummyStruct { - int X[256]; - }; - - // TypeBuilder specialization for DummyStruct. - template - class TypeBuilder { - public: - static StructType *get(LLVMContext &Context) { - return StructType::get( - TypeBuilder[256], XCompile>::get(Context), nullptr); - } - }; +class ModuleBuilder { +public: + ModuleBuilder(LLVMContext &Context, StringRef Triple, + StringRef Name); + + template + Function* createFunctionDecl(Module *M, StringRef Name) { + return Function::Create( + TypeBuilder::get(M->getContext()), + GlobalValue::ExternalLinkage, Name, M); + } + + Module* getModule() { return M.get(); } + const Module* getModule() const { return M.get(); } + std::unique_ptr takeModule() { return std::move(M); } + +private: + std::unique_ptr M; + IRBuilder<> Builder; +}; + +// Dummy struct type. +struct DummyStruct { + int X[256]; +}; + +// TypeBuilder specialization for DummyStruct. +template +class TypeBuilder { +public: + static StructType *get(LLVMContext &Context) { + return StructType::get( + TypeBuilder[256], XCompile>::get(Context), nullptr); + } +}; template