]> granicus.if.org Git - llvm/commitdiff
[TargetLowering] Simplfiy a bit. NFCI.
authorDavide Italiano <davide@freebsd.org>
Sat, 14 Jan 2017 20:09:29 +0000 (20:09 +0000)
committerDavide Italiano <davide@freebsd.org>
Sat, 14 Jan 2017 20:09:29 +0000 (20:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292024 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetLoweringObjectFile.cpp

index 375f8511f7ad6f82faf6cd0ac30c78c6b6077b94..50272fda56ded9d5c21eef0c13be5b97a320ab56 100644 (file)
@@ -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