diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-05-13 01:48:26 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-05-13 01:48:26 +0000 |
commit | 53c5c62d6d144ef7c51414d7357579a9e7d43384 (patch) | |
tree | e5937f6851441b85ec34a039271651378220cfb1 /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | |
parent | 50f7ef30bbe0b38b3eeaac094eb6fae24cb26428 (diff) | |
download | bcm5719-llvm-53c5c62d6d144ef7c51414d7357579a9e7d43384.tar.gz bcm5719-llvm-53c5c62d6d144ef7c51414d7357579a9e7d43384.zip |
80 col / tabs fixes
llvm-svn: 51021
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 264f080787c..e874ec4ec62 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -66,7 +66,8 @@ namespace { virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC); static char ID; // Pass identification, replacement for typeid - ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID), maxElements(maxElements) {} + ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID), + maxElements(maxElements) {} private: bool PromoteArguments(CallGraphNode *CGN); @@ -74,8 +75,8 @@ namespace { Function *DoPromotion(Function *F, SmallPtrSet<Argument*, 8> &ArgsToPromote, SmallPtrSet<Argument*, 8> &ByValArgsToTransform); - /// The maximum number of elements to expand, or 0 for unlimited. - unsigned maxElements; + /// The maximum number of elements to expand, or 0 for unlimited. + unsigned maxElements; }; } @@ -290,7 +291,7 @@ bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg, bool isByVal) const { << Arg->getName() << "' because it would require adding more " << "than " << maxElements << " arguments to the function.\n"; // We limit aggregate promotion to only promoting up to a fixed number - // of elements of the aggregate. + // of elements of the aggregate. return false; } GEPIndices.push_back(Operands); |