PacktPublishing / Learn-LLVM-12

Learn LLVM 12, published by Packt
MIT License
471 stars 102 forks source link

Add DwarfRegNum #4

Open reitowo opened 3 years ago

reitowo commented 3 years ago
// General-purpose registers
foreach I = 0-31 in {
  def R#I : GRi<I, "r"#I>, DwarfRegNum<[I]>;
}

Otherwise, ./llc sum.ll -filetype=obj -march=m88k will fail.

redstar commented 2 years ago

What error message to you get? Adding the register number to DWARF code has no influence when no debug code is emitted. The sum.ll does not contain debug code at all (assuming you are using the file from chapter 9).