File tree Expand file tree Collapse file tree 5 files changed +9
-2
lines changed Expand file tree Collapse file tree 5 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 24
24
#include " llvm/IR/Value.h"
25
25
#include " llvm/Support/Casting.h"
26
26
#include " llvm/Support/ErrorHandling.h"
27
- #include " llvm/Support/MD5.h"
28
27
#include < cassert>
29
28
#include < cstdint>
30
29
#include < string>
@@ -588,7 +587,7 @@ class GlobalValue : public Constant {
588
587
589
588
// / Return a 64-bit global unique ID constructed from global value name
590
589
// / (i.e. returned by getGlobalIdentifier()).
591
- static GUID getGUID (StringRef GlobalName) { return MD5Hash (GlobalName); }
590
+ static GUID getGUID (StringRef GlobalName);
592
591
593
592
// / Return a 64-bit global unique ID constructed from global value name
594
593
// / (i.e. returned by getGlobalIdentifier()).
Original file line number Diff line number Diff line change 21
21
#include " llvm/IR/Module.h"
22
22
#include " llvm/Support/Error.h"
23
23
#include " llvm/Support/ErrorHandling.h"
24
+ #include " llvm/Support/MD5.h"
24
25
#include " llvm/TargetParser/Triple.h"
25
26
using namespace llvm ;
26
27
@@ -71,6 +72,10 @@ void GlobalValue::copyAttributesFrom(const GlobalValue *Src) {
71
72
removeSanitizerMetadata ();
72
73
}
73
74
75
+ GlobalValue::GUID GlobalValue::getGUID (StringRef GlobalName) {
76
+ return MD5Hash (GlobalName);
77
+ }
78
+
74
79
void GlobalValue::removeFromParent () {
75
80
switch (getValueID ()) {
76
81
#define HANDLE_GLOBAL_VALUE (NAME ) \
Original file line number Diff line number Diff line change 22
22
#include " llvm/IR/Value.h"
23
23
#include " llvm/Pass.h"
24
24
#include " llvm/Support/CommandLine.h"
25
+ #include " llvm/Support/MD5.h"
25
26
#include " llvm/Transforms/Utils/ModuleUtils.h"
26
27
27
28
using namespace llvm ;
Original file line number Diff line number Diff line change 53
53
#include " llvm/Support/Casting.h"
54
54
#include " llvm/Support/CommandLine.h"
55
55
#include " llvm/Support/Debug.h"
56
+ #include " llvm/Support/MD5.h"
56
57
#include " llvm/Support/RandomNumberGenerator.h"
57
58
#include " llvm/Support/raw_ostream.h"
58
59
#include " llvm/TargetParser/Triple.h"
Original file line number Diff line number Diff line change 18
18
#include " llvm/IR/IRBuilder.h"
19
19
#include " llvm/IR/MDBuilder.h"
20
20
#include " llvm/IR/Module.h"
21
+ #include " llvm/Support/MD5.h"
21
22
#include " llvm/Support/raw_ostream.h"
22
23
#include " llvm/Support/xxhash.h"
23
24
You can’t perform that action at this time.
0 commit comments