mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -734,18 +734,22 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test,
|
||||
// Resolve the call to function F via the JIT API:
|
||||
//
|
||||
// call resolver(GetElementPtr...)
|
||||
CallInst *Resolver = CallInst::Create(resolverFunc, ResolverArgs.begin(),
|
||||
ResolverArgs.end(),
|
||||
"resolver", LookupBB);
|
||||
// cast the result from the resolver to correctly-typed function
|
||||
CastInst *CastedResolver = new BitCastInst(Resolver,
|
||||
PointerType::getUnqual(F->getFunctionType()), "resolverCast", LookupBB);
|
||||
CallInst *Resolver =
|
||||
CallInst::Create(resolverFunc, ResolverArgs.begin(),
|
||||
ResolverArgs.end(), "resolver", LookupBB);
|
||||
|
||||
// Cast the result from the resolver to correctly-typed function.
|
||||
CastInst *CastedResolver =
|
||||
new BitCastInst(Resolver,
|
||||
PointerType::getUnqual(F->getFunctionType()),
|
||||
"resolverCast", LookupBB);
|
||||
|
||||
// Save the value in our cache.
|
||||
new StoreInst(CastedResolver, Cache, LookupBB);
|
||||
BranchInst::Create(DoCallBB, LookupBB);
|
||||
|
||||
PHINode *FuncPtr = PHINode::Create(NullPtr->getType(), "fp", DoCallBB);
|
||||
PHINode *FuncPtr = PHINode::Create(NullPtr->getType(),
|
||||
"fp", DoCallBB);
|
||||
FuncPtr->addIncoming(CastedResolver, LookupBB);
|
||||
FuncPtr->addIncoming(CachedVal, EntryBB);
|
||||
|
||||
|
Reference in New Issue
Block a user