mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
revert r68457, its crashing in make check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,7 +42,6 @@
|
|||||||
#include "llvm/ExecutionEngine/JIT.h"
|
#include "llvm/ExecutionEngine/JIT.h"
|
||||||
#include "llvm/ExecutionEngine/Interpreter.h"
|
#include "llvm/ExecutionEngine/Interpreter.h"
|
||||||
#include "llvm/ExecutionEngine/GenericValue.h"
|
#include "llvm/ExecutionEngine/GenericValue.h"
|
||||||
#include "llvm/Support/ManagedStatic.h"
|
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@@ -110,8 +109,5 @@ int main() {
|
|||||||
|
|
||||||
// Import result of execution:
|
// Import result of execution:
|
||||||
outs() << "Result: " << gv.IntVal << "\n";
|
outs() << "Result: " << gv.IntVal << "\n";
|
||||||
EE->freeMachineCodeForFunction(FooF);
|
|
||||||
delete EE;
|
|
||||||
llvm_shutdown();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -666,22 +666,6 @@ protected:
|
|||||||
std::multimap<unsigned, PATypeHolder> TypesByHash;
|
std::multimap<unsigned, PATypeHolder> TypesByHash;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
~TypeMapBase()
|
|
||||||
{
|
|
||||||
for (std::multimap<unsigned, PATypeHolder>::iterator I
|
|
||||||
= TypesByHash.begin(), E = TypesByHash.end(); I != E;) {
|
|
||||||
Type *Ty = I->second.get();
|
|
||||||
if (!Ty->isAbstract() && (isa<PointerType>(Ty) || isa<FunctionType>(Ty) ||
|
|
||||||
isa<VectorType>(Ty))) {
|
|
||||||
TypesByHash.erase(I++);
|
|
||||||
// PATypeHolder won't destroy it, so we must
|
|
||||||
Ty->destroy();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
++I;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void RemoveFromTypesByHash(unsigned Hash, const Type *Ty) {
|
void RemoveFromTypesByHash(unsigned Hash, const Type *Ty) {
|
||||||
std::multimap<unsigned, PATypeHolder>::iterator I =
|
std::multimap<unsigned, PATypeHolder>::iterator I =
|
||||||
TypesByHash.lower_bound(Hash);
|
TypesByHash.lower_bound(Hash);
|
||||||
|
Reference in New Issue
Block a user