projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
837451b
)
count the number of relocations performed.
author
Chris Lattner
<sabre@nondot.org>
Wed, 20 Jul 2005 16:29:20 +0000
(16:29 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 20 Jul 2005 16:29:20 +0000
(16:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22480
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/JIT/JITEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/JIT/JITEmitter.cpp
b/lib/ExecutionEngine/JIT/JITEmitter.cpp
index 47adee00192eab0333eccfafb1407808af5c4d86..b38e778bfc7bbf53b8c138eafd3b5f6c401d2a66 100644
(file)
--- a/
lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/
lib/ExecutionEngine/JIT/JITEmitter.cpp
@@
-30,6
+30,7
@@
using namespace llvm;
namespace {
Statistic<> NumBytes("jit", "Number of bytes of machine code compiled");
+ Statistic<> NumRelos("jit", "Number of relocations applied");
JIT *TheJIT = 0;
}
@@
-391,6
+392,8
@@
void JITEmitter::finishFunction(MachineFunction &F) {
NumBytes += CurByte-CurBlock;
if (!Relocations.empty()) {
+ NumRelos += Relocations.size();
+
// Resolve the relocations to concrete pointers.
for (unsigned i = 0, e = Relocations.size(); i != e; ++i) {
MachineRelocation &MR = Relocations[i];