From b99d980b24a4170a825da676199a03f144a0cacb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 18 Dec 2013 16:38:48 +0000 Subject: clang-format parts of the file. I am about to send a patch for review touching these and clang-formating first makes the patch much easier to read. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197585 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenAction.cpp | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'lib/CodeGen/CodeGenAction.cpp') diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp index 3072204c9b..047dc53a0b 100644 --- a/lib/CodeGen/CodeGenAction.cpp +++ b/lib/CodeGen/CodeGenAction.cpp @@ -53,23 +53,14 @@ namespace clang { BackendConsumer(BackendAction action, DiagnosticsEngine &_Diags, const CodeGenOptions &compopts, const TargetOptions &targetopts, - const LangOptions &langopts, - bool TimePasses, - const std::string &infile, - llvm::Module *LinkModule, - raw_ostream *OS, - LLVMContext &C) : - Diags(_Diags), - Action(action), - CodeGenOpts(compopts), - TargetOpts(targetopts), - LangOpts(langopts), - AsmOutStream(OS), - Context(), - LLVMIRGeneration("LLVM IR Generation Time"), - Gen(CreateLLVMCodeGen(Diags, infile, compopts, targetopts, C)), - LinkModule(LinkModule) - { + const LangOptions &langopts, bool TimePasses, + const std::string &infile, llvm::Module *LinkModule, + raw_ostream *OS, LLVMContext &C) + : Diags(_Diags), Action(action), CodeGenOpts(compopts), + TargetOpts(targetopts), LangOpts(langopts), AsmOutStream(OS), + Context(), LLVMIRGeneration("LLVM IR Generation Time"), + Gen(CreateLLVMCodeGen(Diags, infile, compopts, targetopts, C)), + LinkModule(LinkModule) { llvm::TimePassesIsEnabled = TimePasses; } @@ -160,7 +151,7 @@ namespace clang { EmitBackendOutput(Diags, CodeGenOpts, TargetOpts, LangOpts, TheModule.get(), Action, AsmOutStream); - + Ctx.setInlineAsmDiagnosticHandler(OldHandler, OldContext); } -- cgit v1.2.3