mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Subtarget feature can now set any variable to any value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -473,10 +473,11 @@ void SubtargetEmitter::ParseFeaturesFunction(std::ostream &OS) {
|
||||
Record *R = Features[i];
|
||||
std::string Instance = R->getName();
|
||||
std::string Name = R->getValueAsString("Name");
|
||||
std::string Type = R->getValueAsString("Type");
|
||||
std::string Value = R->getValueAsString("Value");
|
||||
std::string Attribute = R->getValueAsString("Attribute");
|
||||
|
||||
OS << " " << Attribute << " = (Bits & " << Instance << ") != 0;\n";
|
||||
|
||||
OS << " if ((Bits & " << Instance << ") != 0) "
|
||||
<< Attribute << " = " << Value << ";\n";
|
||||
}
|
||||
|
||||
if (HasItineraries) {
|
||||
|
||||
Reference in New Issue
Block a user