[llvm] 40fd2d9 - [Transforms] Remove unused declaration emitStrNLen (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 22 09:08:34 PDT 2021


Author: Kazu Hirata
Date: 2021-08-22T09:08:22-07:00
New Revision: 40fd2d93c0ac694dce49e1d52f585752d011d884

URL: https://github.com/llvm/llvm-project/commit/40fd2d93c0ac694dce49e1d52f585752d011d884
DIFF: https://github.com/llvm/llvm-project/commit/40fd2d93c0ac694dce49e1d52f585752d011d884.diff

LOG: [Transforms] Remove unused declaration emitStrNLen (NFC)

The corresponding definition has been missing for at least 5 years.

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Utils/BuildLibCalls.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h b/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h
index d6d043aee3fb..87d33b9b11b7 100644
--- a/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h
+++ b/llvm/include/llvm/Transforms/Utils/BuildLibCalls.h
@@ -54,12 +54,6 @@ namespace llvm {
   /// 'i8*' type.
   Value *emitStrDup(Value *Ptr, IRBuilderBase &B, const TargetLibraryInfo *TLI);
 
-  /// Emit a call to the strnlen function to the builder, for the specified
-  /// pointer. Ptr is required to be some pointer type, MaxLen must be of size_t
-  /// type, and the return value has 'intptr_t' type.
-  Value *emitStrNLen(Value *Ptr, Value *MaxLen, IRBuilderBase &B,
-                     const DataLayout &DL, const TargetLibraryInfo *TLI);
-
   /// Emit a call to the strchr function to the builder, for the specified
   /// pointer and character. Ptr is required to be some pointer type, and the
   /// return value has 'i8*' type.


        


More information about the llvm-commits mailing list