From 76de68eaf9e5ca6ff6561004cb27937cb882fd10 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sat, 14 Jan 2017 20:09:29 +0000 Subject: [TargetLowering] Simplfiy a bit. NFCI. llvm-svn: 292024 --- llvm/lib/Target/TargetLoweringObjectFile.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp') diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index 375f8511f7a..50272fda56d 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -264,10 +264,7 @@ bool TargetLoweringObjectFile::shouldPutJumpTableInFunctionSection( // in discardable section // FIXME: this isn't the right predicate, should be based on the MCSection // for the function. - if (F.isWeakForLinker()) - return true; - - return false; + return F.isWeakForLinker(); } /// Given a mergable constant with the specified size and relocation -- cgit v1.2.3