diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-09 14:50:44 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-09 14:50:44 +0000 |
| commit | 15b26696afe37e40adad3a9806ee11886b3ea349 (patch) | |
| tree | f41f077e446cf9a9c4e09b64093092d0a156ce8e /llvm/lib/Target/ARM/ARMTargetObjectFile.cpp | |
| parent | 9aff95c940394f5f3004150081454a6098838e18 (diff) | |
| download | bcm5719-llvm-15b26696afe37e40adad3a9806ee11886b3ea349.tar.gz bcm5719-llvm-15b26696afe37e40adad3a9806ee11886b3ea349.zip | |
Use a consistent argument order in TargetLoweringObjectFile.
These methods normally call each other and it is really annoying if the
arguments are in different order. The more common rule was that the arguments
specific to call are first (GV, Encoding, Suffix) and the auxiliary objects
(Mang, TM) come after. This patch changes the exceptions.
llvm-svn: 201044
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetObjectFile.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMTargetObjectFile.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp b/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp index 9ada6a8c209..f9d71acf116 100644 --- a/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp +++ b/llvm/lib/Target/ARM/ARMTargetObjectFile.cpp @@ -41,13 +41,12 @@ void ARMElfTargetObjectFile::Initialize(MCContext &Ctx, SectionKind::getMetadata()); } -const MCExpr *ARMElfTargetObjectFile:: -getTTypeGlobalReference(const GlobalValue *GV, Mangler &Mang, - MachineModuleInfo *MMI, unsigned Encoding, - MCStreamer &Streamer) const { +const MCExpr *ARMElfTargetObjectFile::getTTypeGlobalReference( + const GlobalValue *GV, unsigned Encoding, Mangler &Mang, + MachineModuleInfo *MMI, MCStreamer &Streamer) const { assert(Encoding == DW_EH_PE_absptr && "Can handle absptr encoding only"); - return MCSymbolRefExpr::Create(getSymbol(Mang, GV), + return MCSymbolRefExpr::Create(getSymbol(GV, Mang), MCSymbolRefExpr::VK_ARM_TARGET2, getContext()); } |

