[llvm] 3549032 - [NFC][Debugify][Original DI] Use MapVector insted of DenseMap for DI tracking
Djordje Todorovic via llvm-commits
llvm-commits at lists.llvm.org
Fri May 21 02:58:34 PDT 2021
Author: Djordje Todorovic
Date: 2021-05-21T02:58:16-07:00
New Revision: 35490329cb161029329152a956783ef1873824ea
URL: https://github.com/llvm/llvm-project/commit/35490329cb161029329152a956783ef1873824ea
DIFF: https://github.com/llvm/llvm-project/commit/35490329cb161029329152a956783ef1873824ea.diff
LOG: [NFC][Debugify][Original DI] Use MapVector insted of DenseMap for DI tracking
By using MapVector instead of DenseMap, reporting issues will be in
deterministic order.
Differential Revision: https://reviews.llvm.org/D102841
Added:
Modified:
llvm/include/llvm/Transforms/Utils/Debugify.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/Debugify.h b/llvm/include/llvm/Transforms/Utils/Debugify.h
index e2a07442281a2..0f1c7ec724df5 100644
--- a/llvm/include/llvm/Transforms/Utils/Debugify.h
+++ b/llvm/include/llvm/Transforms/Utils/Debugify.h
@@ -14,7 +14,6 @@
#ifndef LLVM_TRANSFORMS_UTILS_DEBUGIFY_H
#define LLVM_TRANSFORMS_UTILS_DEBUGIFY_H
-#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Bitcode/BitcodeWriterPass.h"
@@ -23,11 +22,11 @@
#include "llvm/IR/PassManager.h"
#include "llvm/IR/ValueHandle.h"
-using DebugFnMap = llvm::DenseMap<llvm::StringRef, const llvm::DISubprogram *>;
-using DebugInstMap = llvm::DenseMap<const llvm::Instruction *, bool>;
-using DebugVarMap = llvm::DenseMap<const llvm::DILocalVariable *, unsigned>;
+using DebugFnMap = llvm::MapVector<llvm::StringRef, const llvm::DISubprogram *>;
+using DebugInstMap = llvm::MapVector<const llvm::Instruction *, bool>;
+using DebugVarMap = llvm::MapVector<const llvm::DILocalVariable *, unsigned>;
using WeakInstValueMap =
- llvm::DenseMap<const llvm::Instruction *, llvm::WeakVH>;
+ llvm::MapVector<const llvm::Instruction *, llvm::WeakVH>;
/// Used to track the Debug Info Metadata information.
struct DebugInfoPerPass {
More information about the llvm-commits
mailing list