diff options
| author | Zachary Turner <zturner@google.com> | 2016-05-11 17:47:35 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-05-11 17:47:35 +0000 |
| commit | ae3882a19a9b8341c707fd3c56f245d77068d269 (patch) | |
| tree | fd82f31802b9888c3762075d7246b2f1e07f6b64 /llvm/lib/CodeGen/AsmPrinter | |
| parent | c200ad7e3b809d55254a1c2ed4ab833d59a562ef (diff) | |
| download | bcm5719-llvm-ae3882a19a9b8341c707fd3c56f245d77068d269.tar.gz bcm5719-llvm-ae3882a19a9b8341c707fd3c56f245d77068d269.zip | |
Refactor CodeView type records to use common code.
Differential Revision: http://reviews.llvm.org/D20138
Reviewed By: rnk
llvm-svn: 269216
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 4c4809f50e3..3590d937643 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -263,7 +263,7 @@ void CodeViewDebug::emitTypeInformation() { // type here. unsigned ArgListIndex = getNextTypeIndex(); OS.AddComment("Type record length"); - OS.EmitIntValue(2 + sizeof(ArgList), 2); + OS.EmitIntValue(StringListRecord::getLayoutSize(), 2); OS.AddComment("Leaf type: LF_ARGLIST"); OS.EmitIntValue(LF_ARGLIST, 2); OS.AddComment("Number of arguments"); @@ -271,7 +271,7 @@ void CodeViewDebug::emitTypeInformation() { unsigned VoidFnTyIdx = getNextTypeIndex(); OS.AddComment("Type record length"); - OS.EmitIntValue(2 + sizeof(ProcedureType), 2); + OS.EmitIntValue(ProcedureRecord::getLayoutSize(), 2); OS.AddComment("Leaf type: LF_PROCEDURE"); OS.EmitIntValue(LF_PROCEDURE, 2); OS.AddComment("Return type index"); |

