summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/TargetLibraryInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Analysis/TargetLibraryInfo.h')
-rw-r--r--include/llvm/Analysis/TargetLibraryInfo.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/TargetLibraryInfo.h
index d75e7833279b0..a3fe834022f70 100644
--- a/include/llvm/Analysis/TargetLibraryInfo.h
+++ b/include/llvm/Analysis/TargetLibraryInfo.h
@@ -193,13 +193,9 @@ public:
ShouldSignExtI32Param = Val;
}
- /// Returns the size of the wchar_t type in bytes.
+ /// Returns the size of the wchar_t type in bytes or 0 if the size is unknown.
+ /// This queries the 'wchar_size' metadata.
unsigned getWCharSize(const Module &M) const;
-
- /// Returns size of the default wchar_t type on target \p T. This is mostly
- /// intended to verify that the size in the frontend matches LLVM. All other
- /// queries should use getWCharSize() instead.
- static unsigned getTargetWCharSize(const Triple &T);
};
/// Provides information about what library functions are available for