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

Unified Diff: include/llvm/Transforms/NaCl.h

Issue 29743003: Add passes for applying SFI sandboxing at the LLVM IR level Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry upload Created 6 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 | « no previous file | lib/Bitcode/NaCl/Analysis/LLVMBuild.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/Transforms/NaCl.h
diff --git a/include/llvm/Transforms/NaCl.h b/include/llvm/Transforms/NaCl.h
index c7c26b7fa9af2c2407602532910d98905c88ac91..29816ee7da228614879174499c5ee1e85ce28462 100644
--- a/include/llvm/Transforms/NaCl.h
+++ b/include/llvm/Transforms/NaCl.h
@@ -14,6 +14,14 @@
namespace llvm {
+// XXX: move this to InitializePasses.h!
+class PassRegistry;
+void initializeExpandAllocasPass(PassRegistry&);
+void initializeAllocateDataSegmentPass(PassRegistry&);
+void initializeSandboxIndirectCallsPass(PassRegistry&);
+void initializeSandboxMemoryAccessesPass(PassRegistry&);
+void initializeStripTlsPass(PassRegistry&);
+
class BasicBlockPass;
class Function;
class FunctionPass;
@@ -36,6 +44,11 @@ FunctionPass *createPromoteIntegersPass();
FunctionPass *createRemoveAsmMemoryPass();
FunctionPass *createResolvePNaClIntrinsicsPass();
ModulePass *createAddPNaClExternalDeclsPass();
+ModulePass *createAllocateDataSegmentPass();
+ModulePass *createExpandAllocasPass();
+ModulePass *createSandboxIndirectCallsPass();
+ModulePass *createSandboxMemoryAccessesPass();
+ModulePass *createStripTlsPass();
ModulePass *createCanonicalizeMemIntrinsicsPass();
ModulePass *createExpandArithWithOverflowPass();
ModulePass *createExpandByValPass();
« no previous file with comments | « no previous file | lib/Bitcode/NaCl/Analysis/LLVMBuild.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698