mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[IR] Remove global constructor from Function.cpp
llvm-svn: 293528
This commit is contained in:
parent
dccedede36
commit
799a9da4e4
@ -133,11 +133,11 @@ void IntrinsicEmitter::EmitTargetInfo(const CodeGenIntrinsicTable &Ints,
|
||||
OS << "// Target mapping\n";
|
||||
OS << "#ifdef GET_INTRINSIC_TARGET_DATA\n";
|
||||
OS << "struct IntrinsicTargetInfo {\n"
|
||||
<< " StringRef Name;\n"
|
||||
<< " StringLiteral Name;\n"
|
||||
<< " size_t Offset;\n"
|
||||
<< " size_t Count;\n"
|
||||
<< "};\n";
|
||||
OS << "static const IntrinsicTargetInfo TargetInfos[] = {\n";
|
||||
OS << "static constexpr IntrinsicTargetInfo TargetInfos[] = {\n";
|
||||
for (auto Target : Ints.Targets)
|
||||
OS << " {\"" << Target.Name << "\", " << Target.Offset << ", "
|
||||
<< Target.Count << "},\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user