Apply clang-format on a file, NFC

llvm-svn: 333975
This commit is contained in:
Vedant Kumar 2018-06-05 00:56:07 +00:00
parent b3775b8d98
commit 097bdda6d9

View File

@ -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();