forked from OSchip/llvm-project
One more set of changes to fix formatv() on linux.
llvm-svn: 286692
This commit is contained in:
parent
f269973b2c
commit
eced115aac
|
@ -124,14 +124,14 @@ public:
|
|||
return Result;
|
||||
}
|
||||
|
||||
template <size_t N> llvm::SmallString<N> sstr() const {
|
||||
template <unsigned N> llvm::SmallString<N> sstr() const {
|
||||
SmallString<N> Result;
|
||||
raw_svector_ostream Stream(Result);
|
||||
Stream << *this;
|
||||
return Result;
|
||||
}
|
||||
|
||||
template <size_t N> operator SmallString<N>() const { return sstr<N>(); }
|
||||
template <unsigned N> operator SmallString<N>() const { return sstr<N>(); }
|
||||
|
||||
operator std::string() const { return str(); }
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace detail {
|
|||
|
||||
class format_wrapper {
|
||||
protected:
|
||||
~format_wrapper() {}
|
||||
virtual ~format_wrapper() {}
|
||||
|
||||
public:
|
||||
virtual void format(llvm::raw_ostream &S, StringRef Options) = 0;
|
||||
|
|
Loading…
Reference in New Issue