mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
[PM] While I'm here, fix a few other clang-format issues. Pulls some
lines under 80-columns, etc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d11898db4c
commit
1b497a9fc4
@ -57,7 +57,8 @@ ModuleAnalysisManager::getResultImpl(void *PassID, Module *M) {
|
||||
|
||||
ModuleAnalysisManager::ResultConceptT *
|
||||
ModuleAnalysisManager::getCachedResultImpl(void *PassID, Module *M) const {
|
||||
ModuleAnalysisResultMapT::const_iterator RI = ModuleAnalysisResults.find(PassID);
|
||||
ModuleAnalysisResultMapT::const_iterator RI =
|
||||
ModuleAnalysisResults.find(PassID);
|
||||
return RI == ModuleAnalysisResults.end() ? 0 : &*RI->second;
|
||||
}
|
||||
|
||||
@ -76,7 +77,8 @@ void ModuleAnalysisManager::invalidateImpl(Module *M,
|
||||
ModuleAnalysisResults.erase(I);
|
||||
}
|
||||
|
||||
PreservedAnalyses FunctionPassManager::run(Function *F, FunctionAnalysisManager *AM) {
|
||||
PreservedAnalyses FunctionPassManager::run(Function *F,
|
||||
FunctionAnalysisManager *AM) {
|
||||
PreservedAnalyses PA = PreservedAnalyses::all();
|
||||
|
||||
if (DebugPM)
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
int FunctionCount;
|
||||
};
|
||||
|
||||
static void *ID() { return (void * )&PassID; }
|
||||
static void *ID() { return (void *)&PassID; }
|
||||
|
||||
TestModuleAnalysis(int &Runs) : Runs(Runs) {}
|
||||
|
||||
@ -92,9 +92,7 @@ struct TestModulePass {
|
||||
};
|
||||
|
||||
struct TestPreservingModulePass {
|
||||
PreservedAnalyses run(Module *M) {
|
||||
return PreservedAnalyses::all();
|
||||
}
|
||||
PreservedAnalyses run(Module *M) { return PreservedAnalyses::all(); }
|
||||
|
||||
static StringRef name() { return "TestPreservingModulePass"; }
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user