Prior to this, the code was missing AVR-specific relocation logic in RelocVisitor.h. This patch teaches RelocVisitor about R_AVR_16 and R_AVR_32. Debug information is emitted in the final object file, and understood by 'avr-readelf --debug-dump' from AVR-GCC. llvm-dwarfdump is yet to understand how to dump AVR DWARF symbols. llvm-svn: 351720
30 lines
895 B
C++
30 lines
895 B
C++
//===-- AVRMCAsmInfo.cpp - AVR asm properties -----------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file contains the declarations of the AVRMCAsmInfo properties.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "AVRMCAsmInfo.h"
|
|
|
|
#include "llvm/ADT/Triple.h"
|
|
|
|
namespace llvm {
|
|
|
|
AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT) {
|
|
CodePointerSize = 2;
|
|
CalleeSaveStackSlotSize = 2;
|
|
CommentString = ";";
|
|
PrivateGlobalPrefix = ".L";
|
|
UsesELFSectionDirectiveForBSS = true;
|
|
UseIntegratedAssembler = true;
|
|
SupportsDebugInformation = true;
|
|
}
|
|
|
|
} // end of namespace llvm
|