[llvm-commits] [llvm] r138256 - /llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp
Bill Wendling
isanbard at gmail.com
Mon Aug 22 11:44:49 PDT 2011
Author: void
Date: Mon Aug 22 13:44:49 2011
New Revision: 138256
URL: http://llvm.org/viewvc/llvm-project?rev=138256&view=rev
Log:
Some whitespace fixes and #include reordering.
Modified:
llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp
Modified: llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp?rev=138256&r1=138255&r2=138256&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/SjLjEHPrepare.cpp Mon Aug 22 13:44:49 2011
@@ -21,13 +21,13 @@
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
-#include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/Passes.h"
-#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetLowering.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/Local.h"
+#include "llvm/Support/Debug.h"
+#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/Statistic.h"
#include <set>
using namespace llvm;
@@ -37,9 +37,7 @@
namespace {
class SjLjEHPass : public FunctionPass {
-
const TargetLowering *TLI;
-
Type *FunctionContextTy;
Constant *RegisterFn;
Constant *UnregisterFn;
@@ -53,7 +51,6 @@
Constant *ExceptionFn;
Constant *CallSiteFn;
Constant *DispatchSetupFn;
-
Value *CallSite;
public:
static char ID; // Pass identification, replacement for typeid
@@ -62,7 +59,7 @@
bool doInitialization(Module &M);
bool runOnFunction(Function &F);
- virtual void getAnalysisUsage(AnalysisUsage &AU) const { }
+ virtual void getAnalysisUsage(AnalysisUsage &AU) const {}
const char *getPassName() const {
return "SJLJ Exception Handling preparation";
}
@@ -190,7 +187,7 @@
SplitCriticalEdge(II, 1, this);
assert(!isa<PHINode>(II->getNormalDest()) &&
!isa<PHINode>(II->getUnwindDest()) &&
- "critical edge splitting left single entry phi nodes?");
+ "Critical edge splitting left single entry phi nodes?");
}
Function *F = Invokes.back()->getParent()->getParent();
More information about the llvm-commits
mailing list