diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-11 18:21:59 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-11 18:21:59 +0000 |
commit | 83658d6e7ac38a35dbbd9ef78b38b4705111e6c1 (patch) | |
tree | 671c7623bef0badf6f246c9a2d8a0ed750d4be0a /llvm/lib/Linker | |
parent | 3f61c1ab5eedcb8621060014f863579862a33e04 (diff) | |
download | llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.zip llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.tar.gz llvm-83658d6e7ac38a35dbbd9ef78b38b4705111e6c1.tar.bz2 |
Return a StringRef from getSection.
This is similar to how getName is handled.
llvm-svn: 269218
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r-- | llvm/lib/Linker/IRMover.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/IRMover.cpp b/llvm/lib/Linker/IRMover.cpp index 1100daf..0d37ad1 100644 --- a/llvm/lib/Linker/IRMover.cpp +++ b/llvm/lib/Linker/IRMover.cpp @@ -786,7 +786,7 @@ Constant *IRLinker::linkAppendingVarProto(GlobalVariable *DstGV, return nullptr; } - if (StringRef(DstGV->getSection()) != SrcGV->getSection()) { + if (DstGV->getSection() != SrcGV->getSection()) { emitError( "Appending variables with different section name need to be linked!"); return nullptr; |