projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove an unnecessary use of pointee types introduced in r194220
[oota-llvm.git]
/
lib
/
IR
/
Module.cpp
diff --git
a/lib/IR/Module.cpp
b/lib/IR/Module.cpp
index 3e8f91fee743a94ac001bf05ee4839598bb9b8e1..82b129777f7114141a3ba264a3b0c7be6b7a6c39 100644
(file)
--- a/
lib/IR/Module.cpp
+++ b/
lib/IR/Module.cpp
@@
-394,15
+394,15
@@
std::error_code Module::materialize(GlobalValue *GV) {
return Materializer->materialize(GV);
}
return Materializer->materialize(GV);
}
-void Module::
D
ematerialize(GlobalValue *GV) {
+void Module::
d
ematerialize(GlobalValue *GV) {
if (Materializer)
if (Materializer)
- return Materializer->
D
ematerialize(GV);
+ return Materializer->
d
ematerialize(GV);
}
std::error_code Module::materializeAll() {
if (!Materializer)
return std::error_code();
}
std::error_code Module::materializeAll() {
if (!Materializer)
return std::error_code();
- return Materializer->
M
aterializeModule(this);
+ return Materializer->
m
aterializeModule(this);
}
std::error_code Module::materializeAllPermanently() {
}
std::error_code Module::materializeAllPermanently() {
@@
-458,7
+458,14
@@
void Module::dropAllReferences() {
unsigned Module::getDwarfVersion() const {
auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version"));
if (!Val)
unsigned Module::getDwarfVersion() const {
auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version"));
if (!Val)
- return dwarf::DWARF_VERSION;
+ return 0;
+ return cast<ConstantInt>(Val->getValue())->getZExtValue();
+}
+
+unsigned Module::getCodeViewFlag() const {
+ auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView"));
+ if (!Val)
+ return 0;
return cast<ConstantInt>(Val->getValue())->getZExtValue();
}
return cast<ConstantInt>(Val->getValue())->getZExtValue();
}