aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/XCOFFObjectFile.cpp
diff options
context:
space:
mode:
authordiggerlin <digger.llvm@gmail.com>2020-12-11 17:50:25 -0500
committerdiggerlin <digger.llvm@gmail.com>2020-12-11 17:50:25 -0500
commit997d286f2d0fde66f6eb825932eb06ca3b83607f (patch)
treed1b309f7a12081a03fb048203b165d551d4d18cd /llvm/lib/Object/XCOFFObjectFile.cpp
parentaadcb26ee1650de8eaddc5a141c4302691c446a1 (diff)
downloadllvm-997d286f2d0fde66f6eb825932eb06ca3b83607f.zip
llvm-997d286f2d0fde66f6eb825932eb06ca3b83607f.tar.gz
llvm-997d286f2d0fde66f6eb825932eb06ca3b83607f.tar.bz2
[AIX][XCOFF] emit traceback table for function in aix
SUMMARY: 1. added a new option -xcoff-traceback-table to control whether generate traceback table for function. 2. implement the functionality of emit traceback table of a function. Reviewers: hubert.reinterpretcast, Jason Liu Differential Revision: https://reviews.llvm.org/D92398
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/XCOFFObjectFile.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp
index e908096..fee4685 100644
--- a/llvm/lib/Object/XCOFFObjectFile.cpp
+++ b/llvm/lib/Object/XCOFFObjectFile.cpp
@@ -942,29 +942,6 @@ static SmallString<32> parseParmsTypeWithVecInfo(uint32_t Value,
return ParmsType;
}
-static SmallString<32> parseParmsType(uint32_t Value, unsigned ParmsNum) {
- SmallString<32> ParmsType;
- for (unsigned I = 0; I < ParmsNum; ++I) {
- if (I != 0)
- ParmsType += ", ";
- if ((Value & TracebackTable::ParmTypeIsFloatingBit) == 0) {
- // Fixed parameter type.
- ParmsType += "i";
- Value <<= 1;
- } else {
- if ((Value & TracebackTable::ParmTypeFloatingIsDoubleBit) == 0)
- // Float parameter type.
- ParmsType += "f";
- else
- // Double parameter type.
- ParmsType += "d";
-
- Value <<= 2;
- }
- }
- return ParmsType;
-}
-
Expected<XCOFFTracebackTable> XCOFFTracebackTable::create(const uint8_t *Ptr,
uint64_t &Size) {
Error Err = Error::success();