[PM] Fix some formatting where clang-format has improved recently.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth
2015-01-02 22:51:44 +00:00
parent 8c599f7536
commit b5e9ce6091
2 changed files with 7 additions and 6 deletions

View File

@@ -487,7 +487,7 @@ public:
private: private:
// Pull in the concept type and model template specialized for modules. // Pull in the concept type and model template specialized for modules.
typedef detail::PassConcept<Module *, ModuleAnalysisManager> typedef detail::PassConcept<Module *, ModuleAnalysisManager>
ModulePassConcept; ModulePassConcept;
template <typename PassT> template <typename PassT>
struct ModulePassModel struct ModulePassModel
: detail::PassModel<Module *, ModuleAnalysisManager, PassT> { : detail::PassModel<Module *, ModuleAnalysisManager, PassT> {
@@ -527,7 +527,7 @@ public:
private: private:
// Pull in the concept type and model template specialized for functions. // Pull in the concept type and model template specialized for functions.
typedef detail::PassConcept<Function *, FunctionAnalysisManager> typedef detail::PassConcept<Function *, FunctionAnalysisManager>
FunctionPassConcept; FunctionPassConcept;
template <typename PassT> template <typename PassT>
struct FunctionPassModel struct FunctionPassModel
: detail::PassModel<Function *, FunctionAnalysisManager, PassT> { : detail::PassModel<Function *, FunctionAnalysisManager, PassT> {
@@ -785,7 +785,7 @@ private:
/// half of a bijection and provides storage for the actual result concept. /// half of a bijection and provides storage for the actual result concept.
typedef std::list<std::pair< typedef std::list<std::pair<
void *, std::unique_ptr<detail::AnalysisResultConcept<Function *>>>> void *, std::unique_ptr<detail::AnalysisResultConcept<Function *>>>>
FunctionAnalysisResultListT; FunctionAnalysisResultListT;
/// \brief Map type from function pointer to our custom list type. /// \brief Map type from function pointer to our custom list type.
typedef DenseMap<Function *, FunctionAnalysisResultListT> typedef DenseMap<Function *, FunctionAnalysisResultListT>
@@ -972,7 +972,8 @@ public:
: Pass(Arg.Pass) {} : Pass(Arg.Pass) {}
ModuleToFunctionPassAdaptor(ModuleToFunctionPassAdaptor &&Arg) ModuleToFunctionPassAdaptor(ModuleToFunctionPassAdaptor &&Arg)
: Pass(std::move(Arg.Pass)) {} : Pass(std::move(Arg.Pass)) {}
friend void swap(ModuleToFunctionPassAdaptor &LHS, ModuleToFunctionPassAdaptor &RHS) { friend void swap(ModuleToFunctionPassAdaptor &LHS,
ModuleToFunctionPassAdaptor &RHS) {
using std::swap; using std::swap;
swap(LHS.Pass, RHS.Pass); swap(LHS.Pass, RHS.Pass);
} }

View File

@@ -16,8 +16,8 @@
using namespace llvm; using namespace llvm;
static cl::opt<bool> static cl::opt<bool>
DebugPM("debug-pass-manager", cl::Hidden, DebugPM("debug-pass-manager", cl::Hidden,
cl::desc("Print pass management debugging information")); cl::desc("Print pass management debugging information"));
PreservedAnalyses ModulePassManager::run(Module *M, ModuleAnalysisManager *AM) { PreservedAnalyses ModulePassManager::run(Module *M, ModuleAnalysisManager *AM) {
PreservedAnalyses PA = PreservedAnalyses::all(); PreservedAnalyses PA = PreservedAnalyses::all();