| Index: sandbox/linux/seccomp-bpf/codegen.h
|
| diff --git a/sandbox/linux/seccomp-bpf/codegen.h b/sandbox/linux/seccomp-bpf/codegen.h
|
| index 91eee5274a0f3bd136bc417b516462d9b7052e9e..d5c513b1ac8833a477018c589ff6979fb3e8e3be 100644
|
| --- a/sandbox/linux/seccomp-bpf/codegen.h
|
| +++ b/sandbox/linux/seccomp-bpf/codegen.h
|
| @@ -13,7 +13,6 @@
|
|
|
| namespace sandbox {
|
| struct BasicBlock;
|
| -class ErrorCode;
|
| struct Instruction;
|
|
|
| typedef std::vector<Instruction*> Instructions;
|
| @@ -43,7 +42,8 @@ typedef std::map<const BasicBlock*, int> IncomingBranches;
|
| // gen.MakeInstruction(BPF_JMP+BPF_EQ+BPF_K, __NR_getpid,
|
| // Trap(GetPidHandler, NULL), NULL);
|
| // gen.JoinInstructions(branch,
|
| -// gen.MakeInstruction(BPF_RET+BPF_K, ErrorCode(ErrorCode::ERR_ALLOWED)));
|
| +// gen.MakeInstruction(BPF_RET+BPF_K,
|
| +// ErrorCode(ErrorCode::ERR_ALLOWED).err()));
|
| //
|
| // // Simplified code follows; in practice, it is important to avoid calling
|
| // // any C++ destructors after starting the sandbox.
|
| @@ -69,7 +69,6 @@ class SANDBOX_EXPORT CodeGen {
|
| Instruction* MakeInstruction(uint16_t code,
|
| uint32_t k,
|
| Instruction* next = NULL);
|
| - Instruction* MakeInstruction(uint16_t code, const ErrorCode& err);
|
| Instruction* MakeInstruction(uint16_t code,
|
| uint32_t k,
|
| Instruction* jt,
|
|
|