[llvm] [NFC][TableGen] Emit nested namespaces in InstrInfoEmitter (PR #124210)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 20:45:07 PST 2025
================
@@ -1318,42 +1291,35 @@ void InstrInfoEmitter::emitEnums(raw_ostream &OS) {
OS << "#ifdef GET_INSTRINFO_ENUM\n";
OS << "#undef GET_INSTRINFO_ENUM\n";
- OS << "namespace llvm {\n\n";
-
const CodeGenTarget &Target = CDP.getTargetInfo();
-
- // We must emit the PHI opcode first...
StringRef Namespace = Target.getInstNamespace();
if (Namespace.empty())
PrintFatalError("No instructions defined!");
- OS << "namespace " << Namespace << " {\n";
+ OS << "namespace llvm::" << Namespace << " {\n";
+
+ // We must emit the PHI opcode first...
----------------
jurahul wrote:
Done.
https://github.com/llvm/llvm-project/pull/124210
More information about the llvm-commits
mailing list