diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-06 22:50:13 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-06 22:50:13 +0000 |
commit | af677ebb41036e950f0405becee6b530907bae41 (patch) | |
tree | 9bacc443b22b695c59035b1e3a46f912fd75fc6d /llvm/lib/AsmParser/LLParser.cpp | |
parent | acf8288669b63ad476e7e15ecf0e4c68e4fcb889 (diff) | |
download | bcm5719-llvm-af677ebb41036e950f0405becee6b530907bae41.tar.gz bcm5719-llvm-af677ebb41036e950f0405becee6b530907bae41.zip |
IR: Allow 32-bits for lines in debug location
Remove unnecessary restriction of 24-bits for line numbers in
`MDLocation`.
The rest of the debug info schema (with the exception of local
variables) uses 32-bits for line numbers. As I introduce the
specialized nodes, it makes sense to canonicalize on one size or the
other.
llvm-svn: 228455
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 65627097fdf..6bf3d803a21 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -2946,7 +2946,7 @@ struct MDUnsignedField : public MDFieldImpl<uint64_t> { : ImplTy(Default), Max(Max) {} }; struct LineField : public MDUnsignedField { - LineField() : MDUnsignedField(0, UINT32_MAX >> 8) {} + LineField() : MDUnsignedField(0, UINT32_MAX) {} }; struct ColumnField : public MDUnsignedField { ColumnField() : MDUnsignedField(0, UINT16_MAX) {} |