From 3bd353386a54e65d63dfc8b6cc64b942b2441dc3 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sat, 14 Jan 2017 20:09:29 +0000 Subject: [PATCH] [TargetLowering] Simplfiy a bit. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292024 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetLoweringObjectFile.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 375f8511f7a..50272fda56d 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/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 -- 2.50.1