Skip to content

Commit 39e0b0e

Browse files
committed
remove redundant relocations for pure no-relax code
Created using spr 1.3.5-bogner
2 parents 40b1cbd + 02ed6d8 commit 39e0b0e

File tree

37 files changed

+86
-74
lines changed

37 files changed

+86
-74
lines changed

bolt/lib/Core/DIEBuilder.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ void DIEBuilder::updateReferences() {
175175
LocExpr.Die.replaceValue(getState().DIEAlloc, LocExpr.Attr, LocExpr.Form,
176176
Value);
177177
}
178-
179-
return;
180178
}
181179

182180
uint32_t DIEBuilder::allocDIE(const DWARFUnit &DU, const DWARFDie &DDie,

bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,6 @@ class RISCVMCPlusBuilder : public MCPlusBuilder {
783783
Inst.setOpcode(RISCV::ADD);
784784
Inst.insert(Inst.begin(), MCOperand::createReg(Reg));
785785
Inst.insert(Inst.begin() + 1, MCOperand::createReg(RISCV::X0));
786-
return;
787786
}
788787

789788
InstructionListType createLoadImmediate(const MCPhysReg Dest,

clang/test/Sema/darwin-tls.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple thumbv7k-apple-watchos2.0 %s 2>&1 | FileCheck %s --check-prefix TLS
1414
// RUN: not %clang_cc1 -fsyntax-only -triple i386-apple-watchos2.0-simulator %s 2>&1 | FileCheck %s --check-prefix NO-TLS
1515
// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple i386-apple-watchos3.0-simulator %s 2>&1 | FileCheck %s --check-prefix TLS
16+
// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple arm64-apple-xros %s 2>&1 | FileCheck %s --check-prefix TLS
17+
// RUN: %clang_cc1 -fsyntax-only -Wno-error=implicit-int -triple arm64-apple-xros-simulator %s 2>&1 | FileCheck %s --check-prefix TLS
1618

1719

1820
__thread int a;

clang/unittests/AST/DeclTest.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ TEST(Decl, AsmLabelAttr) {
104104
MC->mangleName(DeclG, OS_G);
105105
}
106106

107-
ASSERT_TRUE(0 == MangleF.compare("\x01" "foo"));
108-
ASSERT_TRUE(0 == MangleG.compare("goo"));
107+
ASSERT_EQ(MangleF, "\x01"
108+
"foo");
109+
ASSERT_EQ(MangleG, "goo");
109110
}
110111

111112
TEST(Decl, MangleDependentSizedArray) {
@@ -138,8 +139,8 @@ TEST(Decl, MangleDependentSizedArray) {
138139
MC->mangleCanonicalTypeName(DeclA->getType(), OS_A);
139140
MC->mangleCanonicalTypeName(DeclB->getType(), OS_B);
140141

141-
ASSERT_TRUE(0 == MangleA.compare("_ZTSA_i"));
142-
ASSERT_TRUE(0 == MangleB.compare("_ZTSAT0__T_"));
142+
ASSERT_EQ(MangleA, "_ZTSA_i");
143+
ASSERT_EQ(MangleB, "_ZTSAT0__T_");
143144
}
144145

145146
TEST(Decl, ConceptDecl) {

lldb/include/lldb/Interpreter/ScriptInterpreter.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,8 @@ class ScriptInterpreter : public PluginInterface {
500500
return false;
501501
}
502502

503-
virtual void OptionParsingStartedForCommandObject(
504-
StructuredData::GenericSP cmd_obj_sp) {
505-
return;
506-
}
503+
virtual void
504+
OptionParsingStartedForCommandObject(StructuredData::GenericSP cmd_obj_sp) {}
507505

508506
virtual uint32_t
509507
GetFlagsForCommandObject(StructuredData::GenericSP cmd_obj_sp) {

lldb/include/lldb/Target/Process.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class Process : public std::enable_shared_from_this<Process>,
605605

606606
/// The underlying plugin might store the low-level communication history for
607607
/// this session. Dump it into the provided stream.
608-
virtual void DumpPluginHistory(Stream &s) { return; }
608+
virtual void DumpPluginHistory(Stream &s) {}
609609

610610
/// Launch a new process.
611611
///

lldb/source/Commands/CommandObjectDiagnostics.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ class CommandObjectDiagnosticsDump : public CommandObjectParsed {
9696
result.GetOutputStream() << "diagnostics written to " << *directory << '\n';
9797

9898
result.SetStatus(eReturnStatusSuccessFinishResult);
99-
return;
10099
}
101100

102101
CommandOptions m_options;

lldb/source/Commands/CommandObjectTarget.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,6 @@ class CommandObjectTargetDelete : public CommandObjectParsed {
649649
result.GetOutputStream().Printf("%u targets deleted.\n",
650650
(uint32_t)num_targets_to_delete);
651651
result.SetStatus(eReturnStatusSuccessFinishResult);
652-
653-
return;
654652
}
655653

656654
OptionGroupOptions m_option_group;

lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
463463
template <typename T, typename U>
464464
void ReverseTransform(T &original_arg, U transformed_arg, Status &error) {
465465
// If U is not a PythonObject, don't touch it!
466-
return;
467466
}
468467

469468
template <typename T>

lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ void AppleDWARFIndex::GetTypes(
263263
m_module.LogMessage(log, "FindByNameAndTag()");
264264
const dw_tag_t expected_tag = context[0].tag;
265265
SearchFor(*m_apple_types_up, expected_name, callback, expected_tag);
266-
return;
267266
}
268267

269268
void AppleDWARFIndex::GetNamespaces(

0 commit comments

Comments
 (0)