summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-06-05 00:56:07 +0000
committerVedant Kumar <vsk@apple.com>2018-06-05 00:56:07 +0000
commitab112b8e9965b409b53ff14792384111641004b9 (patch)
tree3258dbec028812270d5bcdc7a91c17dd3a7ed7ad /llvm/tools
parenta54df26ace8dbe608f171e47394fa4d19f45f0ab (diff)
downloadbcm5719-llvm-ab112b8e9965b409b53ff14792384111641004b9.tar.gz
bcm5719-llvm-ab112b8e9965b409b53ff14792384111641004b9.zip
Apply clang-format on a file, NFC
llvm-svn: 333975
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/opt/Debugify.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/tools/opt/Debugify.cpp b/llvm/tools/opt/Debugify.cpp
index f2d79988a5d..aa967a72aa0 100644
--- a/llvm/tools/opt/Debugify.cpp
+++ b/llvm/tools/opt/Debugify.cpp
@@ -67,8 +67,8 @@ bool applyDebugifyMetadata(Module &M,
unsigned NextLine = 1;
unsigned NextVar = 1;
auto File = DIB.createFile(M.getName(), "/");
- auto CU = DIB.createCompileUnit(dwarf::DW_LANG_C, File,
- "debugify", /*isOptimized=*/true, "", 0);
+ auto CU = DIB.createCompileUnit(dwarf::DW_LANG_C, File, "debugify",
+ /*isOptimized=*/true, "", 0);
// Visit each instruction.
for (Function &F : Functions) {
@@ -145,8 +145,7 @@ bool applyDebugifyMetadata(Module &M,
bool checkDebugifyMetadata(Module &M,
iterator_range<Module::iterator> Functions,
- StringRef NameOfWrappedPass,
- StringRef Banner,
+ StringRef NameOfWrappedPass, StringRef Banner,
bool Strip) {
// Skip modules without debugify metadata.
NamedMDNode *NMD = M.getNamedMetadata("llvm.debugify");
@@ -252,7 +251,7 @@ struct DebugifyFunctionPass : public FunctionPass {
Module &M = *F.getParent();
auto FuncIt = F.getIterator();
return applyDebugifyMetadata(M, make_range(FuncIt, std::next(FuncIt)),
- "FunctionDebugify: ");
+ "FunctionDebugify: ");
}
DebugifyFunctionPass() : FunctionPass(ID) {}
@@ -314,9 +313,7 @@ private:
} // end anonymous namespace
-ModulePass *createDebugifyModulePass() {
- return new DebugifyModulePass();
-}
+ModulePass *createDebugifyModulePass() { return new DebugifyModulePass(); }
FunctionPass *createDebugifyFunctionPass() {
return new DebugifyFunctionPass();
OpenPOWER on IntegriCloud