[llvm] r202207 - Add DIUnspecifiedParameter, so we can pretty-print it.
Eric Christopher
echristo at gmail.com
Tue Feb 25 17:50:26 PST 2014
Thanks!
-eric
On Tue, Feb 25, 2014 at 3:42 PM, Adrian Prantl <aprantl at apple.com> wrote:
> Author: adrian
> Date: Tue Feb 25 17:42:11 2014
> New Revision: 202207
>
> URL: http://llvm.org/viewvc/llvm-project?rev=202207&view=rev
> Log:
> Add DIUnspecifiedParameter, so we can pretty-print it.
> This will be used for testcases in CFE.
>
> Modified:
> llvm/trunk/include/llvm/DebugInfo.h
> llvm/trunk/lib/IR/DebugInfo.cpp
>
> Modified: llvm/trunk/include/llvm/DebugInfo.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo.h?rev=202207&r1=202206&r2=202207&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/DebugInfo.h (original)
> +++ llvm/trunk/include/llvm/DebugInfo.h Tue Feb 25 17:42:11 2014
> @@ -553,6 +553,13 @@ public:
> bool Verify() const;
> };
>
> +/// DIUnspecifiedParameter - This is a wrapper for unspecified parameters.
> +class DIUnspecifiedParameter : public DIDescriptor {
> +public:
> + explicit DIUnspecifiedParameter(const MDNode *N = 0) : DIDescriptor(N) {}
> + bool Verify() const;
> +};
> +
> /// DITemplateTypeParameter - This is a wrapper for template type parameter.
> class DITemplateTypeParameter : public DIDescriptor {
> public:
>
> Modified: llvm/trunk/lib/IR/DebugInfo.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=202207&r1=202206&r2=202207&view=diff
> ==============================================================================
> --- llvm/trunk/lib/IR/DebugInfo.cpp (original)
> +++ llvm/trunk/lib/IR/DebugInfo.cpp Tue Feb 25 17:42:11 2014
> @@ -45,6 +45,7 @@ bool DIDescriptor::Verify() const {
> DILexicalBlockFile(DbgNode).Verify() ||
> DISubrange(DbgNode).Verify() || DIEnumerator(DbgNode).Verify() ||
> DIObjCProperty(DbgNode).Verify() ||
> + DIUnspecifiedParameter(DbgNode).Verify() ||
> DITemplateTypeParameter(DbgNode).Verify() ||
> DITemplateValueParameter(DbgNode).Verify() ||
> DIImportedEntity(DbgNode).Verify());
> @@ -607,6 +608,11 @@ bool DILexicalBlockFile::Verify() const
> return isLexicalBlockFile() && DbgNode->getNumOperands() == 3;
> }
>
> +/// \brief Verify that an unspecified parameter descriptor is well formed.
> +bool DIUnspecifiedParameter::Verify() const {
> + return isUnspecifiedParameter() && DbgNode->getNumOperands() == 1;
> +}
> +
> /// \brief Verify that the template type parameter descriptor is well formed.
> bool DITemplateTypeParameter::Verify() const {
> return isTemplateTypeParameter() && DbgNode->getNumOperands() == 7;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list