mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Add support for alignment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -33,6 +33,12 @@ void AsmPrinter::setupMachineFunction(MachineFunction &MF) {
|
||||
CurrentFnName = Mang->getValueName((Value*)MF.getFunction());
|
||||
}
|
||||
|
||||
// emitAlignment - Emit an alignment directive to the specified power of two.
|
||||
void AsmPrinter::emitAlignment(unsigned NumBits) const {
|
||||
if (AlignmentIsInBytes) NumBits = 1 << NumBits;
|
||||
O << AlignDirective << NumBits << "\n";
|
||||
}
|
||||
|
||||
// Print out the specified constant, without a storage class. Only the
|
||||
// constants valid in constant expressions can occur here.
|
||||
void AsmPrinter::emitConstantValueOnly(const Constant *CV) {
|
||||
|
Reference in New Issue
Block a user