mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 23:17:10 +00:00
Stop using deprecated interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -97,7 +97,8 @@ bool IA64SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
std::string CurSection;
|
std::string CurSection;
|
||||||
|
|
||||||
// Print out module-level global variables here.
|
// Print out module-level global variables here.
|
||||||
for (Module::const_giterator I = M.gbegin(), E = M.gend(); I != E; ++I)
|
for (Module::const_global_iterator I = M.global_begin(), E = M.global_end();
|
||||||
|
I != E; ++I)
|
||||||
if (I->hasInitializer()) { // External global require no code
|
if (I->hasInitializer()) { // External global require no code
|
||||||
O << "\n\n";
|
O << "\n\n";
|
||||||
std::string name = Mang->getValueName(I);
|
std::string name = Mang->getValueName(I);
|
||||||
|
@@ -162,7 +162,7 @@ IA64TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
|||||||
unsigned used_FPArgs=0; // how many FP args have been used so far?
|
unsigned used_FPArgs=0; // how many FP args have been used so far?
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (Function::aiterator I = F.abegin(), E = F.aend(); I != E; ++I)
|
for (Function::arg_iterator I = F.arg_begin(), E = F.arg_end(); I != E; ++I)
|
||||||
{
|
{
|
||||||
SDOperand newroot, argt;
|
SDOperand newroot, argt;
|
||||||
if(count < 8) { // need to fix this logic? maybe.
|
if(count < 8) { // need to fix this logic? maybe.
|
||||||
|
Reference in New Issue
Block a user