We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c24d8 commit 027d012Copy full SHA for 027d012
llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
@@ -745,11 +745,8 @@ bool HexagonAsmParser::ParseDirectiveSubsection(SMLoc L) {
745
// end of the section. Only legacy hexagon-gcc created assembly code
746
// used negative subsections.
747
if ((Res < 0) && (Res > -8193))
748
- Subsection = HexagonMCExpr::create(
749
- MCConstantExpr::create(8192 + Res, getContext()), getContext());
750
-
751
- getStreamer().switchSection(getStreamer().getCurrentSectionOnly(),
752
- Subsection);
+ Res += 8192;
+ getStreamer().switchSection(getStreamer().getCurrentSectionOnly(), Res);
753
return false;
754
}
755
0 commit comments