Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: src/IceInstrumentation.cpp

Issue 2054943002: Implemented global redzones. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Finished reformatting Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceInstrumentation.h ('k') | tests_lit/asan_tests/globalredzones.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstrumentation.cpp
diff --git a/src/IceInstrumentation.cpp b/src/IceInstrumentation.cpp
index 383e1512cde1198989d2be9626f261618504077f..0d56100280d332dab62441f2dfb5463261bc5e78 100644
--- a/src/IceInstrumentation.cpp
+++ b/src/IceInstrumentation.cpp
@@ -47,61 +47,61 @@ void Instrumentation::instrumentInst(LoweringContext &Context) {
assert(!Context.atEnd());
Inst *Instr = iteratorToInst(Context.getCur());
switch (Instr->getKind()) {
- case Inst::Alloca:
- instrumentAlloca(Context, llvm::cast<InstAlloca>(Instr));
- break;
- case Inst::Arithmetic:
- instrumentArithmetic(Context, llvm::cast<InstArithmetic>(Instr));
- break;
- case Inst::Br:
- instrumentBr(Context, llvm::cast<InstBr>(Instr));
- break;
- case Inst::Call:
- instrumentCall(Context, llvm::cast<InstCall>(Instr));
- break;
- case Inst::Cast:
- instrumentCast(Context, llvm::cast<InstCast>(Instr));
- break;
- case Inst::ExtractElement:
- instrumentExtractElement(Context, llvm::cast<InstExtractElement>(Instr));
- break;
- case Inst::Fcmp:
- instrumentFcmp(Context, llvm::cast<InstFcmp>(Instr));
- break;
- case Inst::Icmp:
- instrumentIcmp(Context, llvm::cast<InstIcmp>(Instr));
- break;
- case Inst::InsertElement:
- instrumentInsertElement(Context, llvm::cast<InstInsertElement>(Instr));
- break;
- case Inst::IntrinsicCall:
- instrumentIntrinsicCall(Context, llvm::cast<InstIntrinsicCall>(Instr));
- break;
- case Inst::Load:
- instrumentLoad(Context, llvm::cast<InstLoad>(Instr));
- break;
- case Inst::Phi:
- instrumentPhi(Context, llvm::cast<InstPhi>(Instr));
- break;
- case Inst::Ret:
- instrumentRet(Context, llvm::cast<InstRet>(Instr));
- break;
- case Inst::Select:
- instrumentSelect(Context, llvm::cast<InstSelect>(Instr));
- break;
- case Inst::Store:
- instrumentStore(Context, llvm::cast<InstStore>(Instr));
- break;
- case Inst::Switch:
- instrumentSwitch(Context, llvm::cast<InstSwitch>(Instr));
- break;
- case Inst::Unreachable:
- instrumentUnreachable(Context, llvm::cast<InstUnreachable>(Instr));
- break;
- default:
- // Only instrument high-level ICE instructions
- assert(false && "Instrumentation encountered an unexpected instruction");
- break;
+ case Inst::Alloca:
+ instrumentAlloca(Context, llvm::cast<InstAlloca>(Instr));
+ break;
+ case Inst::Arithmetic:
+ instrumentArithmetic(Context, llvm::cast<InstArithmetic>(Instr));
+ break;
+ case Inst::Br:
+ instrumentBr(Context, llvm::cast<InstBr>(Instr));
+ break;
+ case Inst::Call:
+ instrumentCall(Context, llvm::cast<InstCall>(Instr));
+ break;
+ case Inst::Cast:
+ instrumentCast(Context, llvm::cast<InstCast>(Instr));
+ break;
+ case Inst::ExtractElement:
+ instrumentExtractElement(Context, llvm::cast<InstExtractElement>(Instr));
+ break;
+ case Inst::Fcmp:
+ instrumentFcmp(Context, llvm::cast<InstFcmp>(Instr));
+ break;
+ case Inst::Icmp:
+ instrumentIcmp(Context, llvm::cast<InstIcmp>(Instr));
+ break;
+ case Inst::InsertElement:
+ instrumentInsertElement(Context, llvm::cast<InstInsertElement>(Instr));
+ break;
+ case Inst::IntrinsicCall:
+ instrumentIntrinsicCall(Context, llvm::cast<InstIntrinsicCall>(Instr));
+ break;
+ case Inst::Load:
+ instrumentLoad(Context, llvm::cast<InstLoad>(Instr));
+ break;
+ case Inst::Phi:
+ instrumentPhi(Context, llvm::cast<InstPhi>(Instr));
+ break;
+ case Inst::Ret:
+ instrumentRet(Context, llvm::cast<InstRet>(Instr));
+ break;
+ case Inst::Select:
+ instrumentSelect(Context, llvm::cast<InstSelect>(Instr));
+ break;
+ case Inst::Store:
+ instrumentStore(Context, llvm::cast<InstStore>(Instr));
+ break;
+ case Inst::Switch:
+ instrumentSwitch(Context, llvm::cast<InstSwitch>(Instr));
+ break;
+ case Inst::Unreachable:
+ instrumentUnreachable(Context, llvm::cast<InstUnreachable>(Instr));
+ break;
+ default:
+ // Only instrument high-level ICE instructions
+ assert(false && "Instrumentation encountered an unexpected instruction");
+ break;
}
}
« no previous file with comments | « src/IceInstrumentation.h ('k') | tests_lit/asan_tests/globalredzones.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698