mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 00:24:25 +00:00
MIR Serialization: Print and parse simple machine function attributes.
This commit serializes the simple, scalar attributes from the 'MachineFunction' class. Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D10449 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -190,6 +190,11 @@ bool MIRParserImpl::initializeMachineFunction(MachineFunction &MF) {
|
||||
return error(Twine("no machine function information for function '") +
|
||||
MF.getName() + "' in the MIR file");
|
||||
// TODO: Recreate the machine function.
|
||||
const yaml::MachineFunction &YamlMF = *It->getValue();
|
||||
if (YamlMF.Alignment)
|
||||
MF.setAlignment(YamlMF.Alignment);
|
||||
MF.setExposesReturnsTwice(YamlMF.ExposesReturnsTwice);
|
||||
MF.setHasInlineAsm(YamlMF.HasInlineAsm);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user