diff options
author | Manuel Jacob <me@manueljacob.de> | 2016-01-16 20:30:46 +0000 |
---|---|---|
committer | Manuel Jacob <me@manueljacob.de> | 2016-01-16 20:30:46 +0000 |
commit | 75e1cfb0350ff91bf5ad0ae0bd58be53b4956652 (patch) | |
tree | 4962c798bc9cde718c8786fea3f7c0560445d28f /tools/llvm-nm | |
parent | d75248c804e07614ac9adc1606c397271fd3bc5f (diff) |
GlobalValue: use getValueType() instead of getType()->getPointerElementType().
Reviewers: mjacob
Subscribers: jholewinski, arsenm, dsanders, dblaikie
Patch by Eduard Burtescu.
Differential Revision: http://reviews.llvm.org/D16260
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-nm')
-rw-r--r-- | tools/llvm-nm/llvm-nm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index b812233034e..50960653f75 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -792,7 +792,7 @@ static char getSymbolNMTypeChar(MachOObjectFile &Obj, basic_symbol_iterator I) { } static char getSymbolNMTypeChar(const GlobalValue &GV) { - if (GV.getType()->getElementType()->isFunctionTy()) + if (GV.getValueType()->isFunctionTy()) return 't'; // FIXME: should we print 'b'? At the IR level we cannot be sure if this // will be in bss or not, but we could approximate. |