[llvm] [BOLT][DWARF][NFC] Refactor GDB Index into a new file (PR #94405)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 4 17:32:25 PDT 2024


================
@@ -0,0 +1,182 @@
+//===- bolt/Rewrite/GDBIndex.cpp -------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "bolt/Core/GDBIndex.h"
+
+using namespace llvm::bolt;
+using namespace llvm::support::endian;
+
+void GDBIndex::addGDBTypeUnitEntry(const GDBIndexTUEntry &Entry) {
----------------
ayermolo wrote:

Look like some code that checks the section got lost in refactor.

https://github.com/llvm/llvm-project/pull/94405


More information about the llvm-commits mailing list