projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3807217
)
Use unique_ptr to hold MCInstrInfo
author
Vitaly Buka
<vitalybuka@google.com>
Fri, 24 Aug 2018 21:03:35 +0000
(21:03 +0000)
committer
Vitaly Buka
<vitalybuka@google.com>
Fri, 24 Aug 2018 21:03:35 +0000
(21:03 +0000)
llvm-svn: 340654
llvm/lib/Object/ELFObjectFile.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Object/ELFObjectFile.cpp
b/llvm/lib/Object/ELFObjectFile.cpp
index
3f89848
..
9fb3a55
100644
(file)
--- a/
llvm/lib/Object/ELFObjectFile.cpp
+++ b/
llvm/lib/Object/ELFObjectFile.cpp
@@
-351,8
+351,9
@@
ELFObjectFileBase::getPltAddresses() const {
default:
return {};
}
+ std::unique_ptr<const MCInstrInfo> MII(T->createMCInstrInfo());
std::unique_ptr<const MCInstrAnalysis> MIA(
- T->createMCInstrAnalysis(
T->createMCInstrInfo
()));
+ T->createMCInstrAnalysis(
MII.get
()));
if (!MIA)
return {};
Optional<SectionRef> Plt = None, RelaPlt = None, GotPlt = None;