projects
/
fuckit_dot_so.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1676cb
)
Only register the native target.
author
Matt Mullins
<mmullins@mmlx.us>
Mon, 26 May 2014 02:18:57 +0000
(19:18 -0700)
committer
Matt Mullins
<mmullins@mmlx.us>
Mon, 26 May 2014 02:21:10 +0000
(19:21 -0700)
It's highly unlikely that we're going to receive a SIGSEGV for code on
a different architecture.
fuckit.cpp
patch
|
blob
|
history
diff --git
a/fuckit.cpp
b/fuckit.cpp
index
7bc810e
..
39ac14f
100644
(file)
--- a/
fuckit.cpp
+++ b/
fuckit.cpp
@@
-62,9
+62,8
@@
static void setup_signals()
page_mask = page_size - 1;
fprintf(stderr, "Set up LLVM\n");
- llvm::InitializeAllTargets();
- llvm::InitializeAllTargetMCs();
- llvm::InitializeAllDisassemblers();
+ llvm::InitializeNativeTarget();
+ llvm::InitializeNativeTargetDisassembler();
std::string dontcare;
target = llvm::TargetRegistry::lookupTarget(