[mips] The naming convention for private labels is ABI dependant.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 20 May 2015 13:16:42 +0000 (13:16 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 20 May 2015 13:16:42 +0000 (13:16 +0000)
commite1207bb8a2da0c9a2c6be58b804c703ee89d7c0a
tree907161a7de01ad7a4d272382fc7aee4d57d056c5
parentefab5a1dfa657282005cf69b82e19901c694186f
[mips] The naming convention for private labels is ABI dependant.

Summary:
For N32/N64, private labels begin with '.L' but for O32 they begin with '$'.

MCAsmInfo now has an initializer function which can be used to provide information from the TargetMachine to control the assembly syntax.

Reviewers: vkalintiris

Reviewed By: vkalintiris

Subscribers: jfb, sandeep, llvm-commits, rafael

Differential Revision: http://reviews.llvm.org/D9821

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237789 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
include/llvm/MC/MCAsmInfo.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
lib/Target/Mips/MCTargetDesc/MipsABIInfo.h
lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.h
lib/Target/Mips/MipsTargetMachine.cpp
test/CodeGen/Mips/analyzebranch.ll
test/CodeGen/Mips/atomic.ll
test/CodeGen/Mips/blez_bgez.ll
test/CodeGen/Mips/blockaddr.ll
test/CodeGen/Mips/fpbr.ll
test/CodeGen/Mips/llvm-ir/ashr.ll
test/CodeGen/Mips/llvm-ir/indirectbr.ll
test/CodeGen/Mips/llvm-ir/lshr.ll
test/CodeGen/Mips/llvm-ir/select.ll
test/CodeGen/Mips/llvm-ir/shl.ll
test/CodeGen/Mips/longbranch.ll
test/CodeGen/Mips/octeon.ll
test/CodeGen/Mips/private_label.ll [new file with mode: 0644]