Correct order of parameters.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 4 Jan 2008 02:22:21 +0000 (02:22 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 4 Jan 2008 02:22:21 +0000 (02:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45562 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCCodeEmitter.cpp

index b96d555a530df667c73ca4e99116b285731a2c8a..8f5e6fcbf0aa48fe64bcf50731c67db533516b44 100644 (file)
@@ -189,8 +189,8 @@ int PPCCodeEmitter::getMachineOpValue(MachineInstr &MI, MachineOperand &MO) {
     MachineRelocation R;
     if (MO.isGlobalAddress()) {
       R = MachineRelocation::getGV(MCE.getCurrentPCOffset(), Reloc,
-                                   MO.getGlobal(),
-                                   isa<Function>(MO.getGlobal()), 0);
+                                   MO.getGlobal(), 0,
+                                   isa<Function>(MO.getGlobal()));
     } else if (MO.isExternalSymbol()) {
       R = MachineRelocation::getExtSym(MCE.getCurrentPCOffset(),
                                        Reloc, MO.getSymbolName(), 0);